[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
True type font
From: "R" ####@####.#### Date: 23 Dec 2004 13:16:28 +0000 Message-Id: <000c01c4e8f2$71fc5b30$4201a8c0@GAUL.local> Hi, I am trying to use Microwin with Truetype2 fonts. I amusing the following code to create and select some true type fonts. The function is returning a valid hFont. But I am not able to see any text output. If I use some other font, then I can see messages like "Cannot find <fontname > using system font" and the text is displayed using system font. HFONT InitializeFont(char* pFontName , HDC hdc) { LOGFONT lf; HFONT hFont; memset(&lf, 0, sizeof(LOGFONT)); strcpy(lf.lfFaceName, pFontName); /* lf.lfHeight = -MulDiv(12, GetDeviceCaps(hdc, LOGPIXELSY), 72);*/ lf.lfHeight = 12; lf.lfWeight = FW_BOLD; hFont = CreateFontIndirect( &lf ); if (NULL == hFont) return NULL; return SelectObject( hdc, hFont); } Would appreciate any help TIA RR | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
true type font
From: "Marco Rossi" ####@####.#### Date: 6 Jun 2006 09:05:34 +0100 Message-Id: <010f01c68940$4c138de0$0c08a8c0@marco> Hi All, I use nano-X with uClinux, on a hardware based on MicroBlaze; If I try to qualify the font “freetype”, during the compilation I obtain this error > > compiling client.c > client.c: In Function 'GrUnregisterInput': > client.c:707: error: impossible constraint in 'asm' > client.c:716: error: impossible constraint in 'asm' > Any ideas why? Thanks. Best Regards, Marco L'informativa ai sensi del D.Lgs 196/2003 (Codice della Privacy) sul sito www.corghi.com | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] true type font
From: "Greg Haerr" ####@####.#### Date: 7 Jun 2006 04:21:14 +0100 Message-Id: <016101c689e1$37fd6c80$6401a8c0@winXP> : > compiling client.c : > client.c: In Function 'GrUnregisterInput': : > client.c:707: error: impossible constraint in 'asm' : > client.c:716: error: impossible constraint in 'asm' Pretty strange, a compiler bug likely. The good news is that you can likely comment out the entire function, since not much uses it. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] true type font
From: Atul Kulkarni ####@####.#### Date: 7 Jun 2006 06:17:40 +0100 Message-Id: <1149661307.3135.4.camel@localhost.localdomain> Hi Rossi, I had also same error. By reducing optimization level it goes off say to O0. You can compile this file separately also, with reduced optimization level while others can go with same settings. Please try and see if it works for you. Regards, Atul On Tue, 2006-06-06 at 21:19 -0600, Greg Haerr wrote: > : > compiling client.c > : > client.c: In Function 'GrUnregisterInput': > : > client.c:707: error: impossible constraint in 'asm' > : > client.c:716: error: impossible constraint in 'asm' > > Pretty strange, a compiler bug likely. The good news > is that you can likely comment out the entire function, > since not much uses it. > > Regards, > > Greg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### ***********************Confidentiality Notice*************************** The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Divinet or ####@####.#### immediately and destroy all copies of this message and any attachments. ************************************************************************ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
true type font
From: "Marco Rossi" ####@####.#### Date: 15 Jun 2006 07:53:21 +0100 Message-Id: <006501c69048$e11c2140$0c08a8c0@marco> Hi All, On Tue, 2006-06-06 at 10:07 +0200, Marco Rossi wrote: >>I use nano-X with uClinux, on a hardware based on MicroBlaze; >>If I try to qualify the font “freetype”, during the compilation I obtain >>this error >> >> >> compiling client.c >> client.c: In Function 'GrUnregisterInput': >> client.c:707: error: impossible constraint in 'asm' >> client.c:716: error: impossible constraint in 'asm' >> On Tue, 2006-06-06 at 11:01 +0200, Atul wrote: >See the compiler optimization settings (generally looks like O2 ) reduce >it to 0 or 1 if it is higher and see. I have modified this settings in microwin/src/arch.rules (CFLAGS) and also in microwin/src/makefile.rules (OPTFLAGS) without to obtain it turns out to you, this setting goes inserted in some other files? On Tue, 2006-06-06 at 21:19 -0600, Greg Haerr wrote: > : > compiling client.c > : > client.c: In Function 'GrUnregisterInput': > : > client.c:707: error: impossible constraint in 'asm' > : > client.c:716: error: impossible constraint in 'asm' > > Pretty strange, a compiler bug likely. The good news > is that you can likely comment out the entire function, > since not much uses it. I have tried, but if comment the function the same error is introduced to me in the successive function and in particular to function FD_ISSET (fd, ®fdset): that e' used me in many points and it did not seem the case to comment them all; what just I do not understand is because functions FD_ISSET give problems single if active HAVE_FREETYPE_SUPPORT=Y in fact the GrUnregisterInput function of the client.c always comes however compiled. Thanks. Best Regards, Marco L'informativa ai sensi del D.Lgs 196/2003 (Codice della Privacy) sul sito www.corghi.com | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |