[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: freetype font
From: "Gary James" ####@####.#### Date: 14 Aug 2001 13:38:04 -0000 Message-Id: <3B78F1EE.16373.1A77B8@localhost> Hi Girija, It looks like you are mixing libraries. Are you cross compiling for an ARM processor? The libraries in the /usr/lical/lib directory are for runnning FreeType on your host machine. You will need to cross compile the FreeType libraries for your target platform and link those into your target application. I don't discuss cross compiling on my tutorials, they are all targeted to the X11 simulator to get people started with nano-X on a common platform. Gary James Date sent: Tue, 14 Aug 2001 14:16:16 +0530 From: Girija Deo ####@####.#### Organization: Cirrus Logic Software Pvt. Ltd. To: ####@####.#### Subject: freetype font > Hello, > > I have downloaded and installed freetype fonts as directed in the site > http://home.twcny.rr.com/embedded/microwin/install/index.html > > But when I rcompiled microwindows with FREETYPE_SUPPORT = Y and setting proper > paths > for libs, I got following errors saying "multiple definations". > Here is the logfile.... > > /usr/local/lib/libttf.so: In function `Get_Class2': > /home/girija/demo/freetype-1.3.1/lib/arch/unix/../../extend/ftxopen.c:1287: > mult > iple definition of `_DYNAMIC' > /home/girija/armx/arm-linux/lib/libm.so(.dynamic+0x0): first defined here > /usr/local/lib/libttf.so: In function `Get_Device': > /home/girija/demo/freetype-1.3.1/lib/arch/unix/../../extend/ftxopen.c(.init+0x0) > > : multiple definition of `_init' > /home/girija/armx/arm-linux/lib/crti.o(.init+0x0): first defined here > /usr/local/lib/libttf.so: In function `Get_Class2': > /home/girija/demo/freetype-1.3.1/lib/arch/unix/../../extend/ftxopen.c:1287: > mult > iple definition of `_fini' > /home/girija/armx/arm-linux/lib/crti.o(.fini+0x0): first defined here > /usr/local/lib/libttf.so: In function `Get_Class2': > /home/girija/demo/freetype-1.3.1/lib/arch/unix/../../extend/ftxopen.c:1287: > mult > iple definition of `_GLOBAL_OFFSET_TABLE_' > /home/girija/armx/arm-linux/lib/libm.so(.got.plt+0x0): first defined here > collect2: ld returned 1 exit status > make[2]: *** [/home/girija/demo/microwin/src/bin/nanowm] Error 1 > > > What needs to be done ? > Thanks, > Girija > > > Gary James wrote: > > > > You are using built in fonts here, and unless a font of size 50 has been > > > built in to microwindows, you won't be able to resize to a 50 point > > > font. The only way around this is to either use true-type fonts (i > > > think), or build in a 50 point times font. A previous post of mine > > > describes how to do this - you should be able to find it in the archive. > > > > Here are some detailed instructions on setting up and using TrueType > > fonts in nano-X. > > > > http://home.twcny.rr.com/embedded/microwin/install/ch3.html > > > > Gary James > > ####@####.#### > > http://home.twcny.rr.com/embedded/ > > > > > > > > Cheers, > > > Dunk. > > > > > > -- > > > Duncan Palmer > > > ####@####.#### > > > Software Design Engineer Phone: > > > +353-1-2911561 > > > Silicon and Software Systems Fax: > > > +353-1-2911001 > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: ####@####.#### > > > For additional commands, e-mail: ####@####.#### > > > > > > > > > > -- > > Gary A James, Critical Link, LLC > > Voice: 315.425.4045 x218 > > Fax: 315.425.4048 > > E-Mail: ####@####.#### > > WEB: http://www.criticallink.com > > -- Gary A James, Critical Link, LLC Voice: 315.425.4045 x218 Fax: 315.425.4048 E-Mail: ####@####.#### WEB: http://www.criticallink.com | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: freetype font
From: Girija Deo ####@####.#### Date: 16 Aug 2001 10:16:57 -0000 Message-Id: <3B7B9D66.A179E93C@cirrus.stpp.soft.net> Hi Gary, I tried to cross-compile, but facing some problems. after running 'autoconf' it gives configure.in:171: warning: AC_TRY_RUN called without default to allow cross compiling. I checked on web, http://www.cs.huji.ac.il/support/docs/autobook/autobook_270.html#SEC270 It says, if one gets above mentioned warning, "This tells you that the resulting `configure' script will not work when building with a cross compiler" Line 171 of configure.in has `AC_CHECK_SIZEOF' macro. The document says "which is generally not very useful when building with a cross compiler" So, ./configure --target=arm-linux command does not seem to work. How do I cross-compile freetype-1.3.1 for ARM processor ? Thanks, Girija Gary James wrote: > Hi Girija, > > It looks like you are mixing libraries. Are you cross compiling for > an ARM processor? The libraries in the /usr/lical/lib directory are > for runnning FreeType on your host machine. You will need to cross > compile the FreeType libraries for your target platform and link > those into your target application. I don't discuss cross compiling > on my tutorials, they are all targeted to the X11 simulator to get > people started with nano-X on a common platform. > > Gary James > > Date sent: Tue, 14 Aug 2001 14:16:16 +0530 > From: Girija Deo ####@####.#### > Organization: Cirrus Logic Software Pvt. Ltd. > To: ####@####.#### > Subject: freetype font > > > Hello, > > > > I have downloaded and installed freetype fonts as directed in the site > > http://home.twcny.rr.com/embedded/microwin/install/index.html > > > > But when I rcompiled microwindows with FREETYPE_SUPPORT = Y and setting proper > > paths > > for libs, I got following errors saying "multiple definations". > > Here is the logfile.... > > > > /usr/local/lib/libttf.so: In function `Get_Class2': > > /home/girija/demo/freetype-1.3.1/lib/arch/unix/../../extend/ftxopen.c:1287: > > mult > > iple definition of `_DYNAMIC' > > /home/girija/armx/arm-linux/lib/libm.so(.dynamic+0x0): first defined here > > /usr/local/lib/libttf.so: In function `Get_Device': > > /home/girija/demo/freetype-1.3.1/lib/arch/unix/../../extend/ftxopen.c(.init+0x0) > > > > : multiple definition of `_init' > > /home/girija/armx/arm-linux/lib/crti.o(.init+0x0): first defined here > > /usr/local/lib/libttf.so: In function `Get_Class2': > > /home/girija/demo/freetype-1.3.1/lib/arch/unix/../../extend/ftxopen.c:1287: > > mult > > iple definition of `_fini' > > /home/girija/armx/arm-linux/lib/crti.o(.fini+0x0): first defined here > > /usr/local/lib/libttf.so: In function `Get_Class2': > > /home/girija/demo/freetype-1.3.1/lib/arch/unix/../../extend/ftxopen.c:1287: > > mult > > iple definition of `_GLOBAL_OFFSET_TABLE_' > > /home/girija/armx/arm-linux/lib/libm.so(.got.plt+0x0): first defined here > > collect2: ld returned 1 exit status > > make[2]: *** [/home/girija/demo/microwin/src/bin/nanowm] Error 1 > > > > > > What needs to be done ? > > Thanks, > > Girija > > > > > > Gary James wrote: > > > > > > You are using built in fonts here, and unless a font of size 50 has been > > > > built in to microwindows, you won't be able to resize to a 50 point > > > > font. The only way around this is to either use true-type fonts (i > > > > think), or build in a 50 point times font. A previous post of mine > > > > describes how to do this - you should be able to find it in the archive. > > > > > > Here are some detailed instructions on setting up and using TrueType > > > fonts in nano-X. > > > > > > http://home.twcny.rr.com/embedded/microwin/install/ch3.html > > > > > > Gary James > > > ####@####.#### > > > http://home.twcny.rr.com/embedded/ > > > > > > > > > > > Cheers, > > > > Dunk. > > > > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
freetype font
From: Zhao Jianwei ####@####.#### Date: 15 Apr 2003 06:00:36 -0000 Message-Id: <PAEEKBCMHPJHFFKDDOAOAEGKCBAA.zhaojianwei@neusoft.com> hi all, I have installed freetype2 to support scalable chinese font. I have copyed simsun.ttf(chinese font under microsoft windows)to /microwin/fonts/truetype directory,and set HAVE_FREETYPE_SUPPORT to Y in config file. but i don't know how to use simsun font in a application.what should i do? Can you tell me? Regards and Thanks Jason | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] freetype font
From: "Greg Haerr" ####@####.#### Date: 15 Apr 2003 06:35:13 -0000 Message-Id: <0f4401c30317$d493c110$6401a8c0@gregnewport> > I have installed freetype2 to support scalable chinese font. > I have copyed simsun.ttf(chinese font under microsoft windows)to /microwin/fonts/truetype directory,and set HAVE_FREETYPE_SUPPORT to Y in config file. but i don't know how to use simsun font in a application. I will comment on Freetype 1, Jon contributed the freetype 2 code, I'm not sure if it's the same or not... 1. HAVE_FREETYPE_SUPPORT=Y turns on support for freetype 1, not freetype 2. 2. Set the font path prefix with FREETYPE_FONT_DIR=/path/prefix 3. Use GrCreateFont("font.ttf", size, NULL); to create the font. Then selected it in the GC using GrSetGCFont. Then use GrText. You can also provide the full path to the font in GrCreateFont. Also, the .ttf extension is not required using Freetype1 and will be added automatically if required. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] freetype font
From: ####@####.#### Date: 22 Apr 2003 10:41:43 -0000 Message-Id: <OFE976E8C0.26A0B4B1-ON80256D10.0038AFA5-80256D10.00398BDD@diamond.philips.com> Hi, Greg wrote: > > I have installed freetype2 to support scalable chinese font. > > I have copyed simsun.ttf(chinese font under microsoft windows)to > > /microwin/fonts/truetype directory,and set HAVE_FREETYPE_SUPPORT to Y in > > config file. but i don't know how to use simsun font in a application. > > I will comment on Freetype 1, Jon contributed > the freetype 2 code, I'm not sure if it's the > same or not... I'll point out the FreeType 2 (aka FT2) differences. > 1. HAVE_FREETYPE_SUPPORT=Y turns on support for > freetype 1, not freetype 2. HAVE_FREETYPE2_SUPPORT=Y turns on support for FreeType 2. You can't enable both FT1 and FT2. > 2. Set the font path prefix with > FREETYPE_FONT_DIR=/path/prefix Same for FT2. > 3. Use GrCreateFont("font.ttf", size, NULL); > to create the font. Then selected it in > the GC using GrSetGCFont. Then use GrText. > > You can also provide the full path to the > font in GrCreateFont. Also, the .ttf extension > is not required using Freetype1 and will be > added automatically if required. Same for FT2. The FT2 driver only uses Unicode character maps, so for non-English characters I recommend sending UC16 or UTF8 characters to GrText. It would be possible to change the FT2 driver to use other character maps. Kind regards, Jon Foster -- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] freetype font
From: "Greg Haerr" ####@####.#### Date: 22 Apr 2003 16:49:06 -0000 Message-Id: <011901c308ed$d53f1b60$6401a8c0@gregnewport> > Same for FT2. The FT2 driver only uses Unicode > character maps, so for non-English characters I > recommend sending UC16 or UTF8 characters to GrText. > It would be possible to change the FT2 driver to use other > character maps. If you take a look at my latest (April 13, 2002) 0.89pl12 CVS version, you'll see I've rewritten the way that the older Chinese, Japanese, and Korean fonts work. I seperated the DBCS decoding from the font display, so that DBCS, UTF8, UC16 and ASCII encoded text can be displayed for FT1, FT2, PCF and FNT based fonts. The desired mechanism is for the font subrenderer to support UC16, in which case all the input decoders should work. Shortly I plan to add support for a default character, for unsupported glyphs. The FNT and PCF renderers, for speed, use an internal check for ASCII/non-ASCII so that ASCII text doesn't always have to be converted to UC16. There's been a lot added, I think it's probably time for a 0.90 release, with more regular releases. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |