[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
using fltk fonts system with nano
From: Kishore Kumar ####@####.#### Date: 14 Mar 2006 12:21:06 +0000 Message-Id: <1142338858.7784.1.camel@kishore.localdomain> Im using FLTK 1.1.7 with nano-X 0.91. In nano-X ,i could load a new font(*.pcf or *.fnt) dynamically using GrCreateFont() and show using GrText(). I convert normally the ttftobdf and the bdftopcf and then load them in nano-X.But how could I use the same fonts from FLTK ? Could I use only the 255 system defined fonts,can I change them to use the font I intentended to? Hope someone could give some tips here, Regards, Kishore | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] using fltk fonts system with nano
From: "Martin Kajdas" ####@####.#### Date: 14 Mar 2006 15:59:16 +0000 Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC22914E4@mkmail.MKPROD.COM> I do not understand the question but I am using FLTK (X Windows) fonts with nano-X with no problems. I am also using FLTK 1.1.7 and nano-X 0.91 and libnx. The FLTK uses X-Windows fonts (mostly Helvetica) and I just copied the fonts to the directory where the nano-X can find them and let nano-X load them. I did not go thru any conversions. I just used the *.pcf.gz files directly. Please, clarify your question. Martin -----Original Message----- From: Kishore Kumar ####@####.#### Sent: Tuesday, March 14, 2006 4:21 AM To: ####@####.#### Subject: [nanogui] using fltk fonts system with nano Im using FLTK 1.1.7 with nano-X 0.91. In nano-X ,i could load a new font(*.pcf or *.fnt) dynamically using GrCreateFont() and show using GrText(). I convert normally the ttftobdf and the bdftopcf and then load them in nano-X.But how could I use the same fonts from FLTK ? Could I use only the 255 system defined fonts,can I change them to use the font I intentended to? Hope someone could give some tips here, Regards, Kishore --------------------------------------------------------------------- To unsubscribe, e-mail: ####@####.#### For additional commands, e-mail: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] using fltk fonts system with nano
From: Kishore Kumar ####@####.#### Date: 23 Mar 2006 09:48:25 +0000 Message-Id: <1143107300.26646.9.camel@kishore.localdomain> Hi Thanks for the response! My nanoX configuration for pcf support look like this. #################################################################### # PCF font support # Selecting HAVE_PCFGZ_SUPPORT will allow you to directly read # .pcf.gz files, but it will add libz to the size of the server #################################################################### HAVE_PCF_SUPPORT = Y HAVE_PCFGZ_SUPPORT = N PCF_FONT_DIR = "fonts/pcf" I dont use .pcf.gz files.will it function similarly if I add normal pcf filed in the above defined directory? Although I put the files in defined directory,it shows only with default fonts. what am I doing wrong here? Regards, Kishore | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] using fltk fonts system with nano
From: Michael Bogaerts ####@####.#### Date: 23 Mar 2006 10:41:01 +0000 Message-Id: <7.0.0.16.2.20060323113942.027b3300@turnhout.tokheim.com> Check the current working directory of your applicaiton. this might different that what you expect it to be -=Michael=- At 10:48 23/03/2006, Kishore Kumar wrote: >Hi >Thanks for the response! >My nanoX configuration for pcf support look like this. > >#################################################################### ># PCF font support ># Selecting HAVE_PCFGZ_SUPPORT will allow you to directly read ># .pcf.gz files, but it will add libz to the size of the server >#################################################################### >HAVE_PCF_SUPPORT = Y >HAVE_PCFGZ_SUPPORT = N >PCF_FONT_DIR = "fonts/pcf" > > >I dont use .pcf.gz files.will it function similarly if I add normal pcf >filed in the above defined directory? > >Although I put the files in defined directory,it shows only with default >fonts. > >what am I doing wrong here? > >Regards, >Kishore > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: ####@####.#### >For additional commands, e-mail: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] using fltk fonts system with nano
From: Kishore Kumar ####@####.#### Date: 23 Mar 2006 11:17:41 +0000 Message-Id: <1143112654.26646.18.camel@kishore.localdomain> Hi, > Check the current working directory of your applicaiton. > which application u mean? nano-X Or application ? I have nano-x installed in /usr/bin.And the *.pcf fonts at /usr/bin/fonts. I start my application in this sequence % cd /usr/bin %./nano-X & % /tmp/fltkexample But it doesnt work? Shall I compile nano-X fonts path configured to absoulte path instead of relative path as in config file? Regards, Kishore | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] using fltk fonts system with nano
From: Kishore Kumar ####@####.#### Date: 23 Mar 2006 12:22:31 +0000 Message-Id: <1143116547.26646.24.camel@kishore.localdomain> the debug output look so >XLoadFont('fixed') = '(null)' [0] Its not able to find the 'fixed' font. Regards, Kishore | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] using fltk fonts system with nano
From: "Martin Kajdas" ####@####.#### Date: 23 Mar 2006 16:16:39 +0000 Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC22914F0@mkmail.MKPROD.COM> I would use a complete path in PCF_FONT_DIR like: PCF_FONT_DIR = /usr/lib/X11/fonts/pcf Then, this is where your font files need to be on your target. Do you have a 'fixed.pcf' file in your /usr/lib/X11/fonts/pcf (in my case) directory on your target? If your fixed font has a different file name then you need the fonts.dir file with the line like: some_fixed_font_file.pcf fixed You need to resolve directory and naming issues because your program cannot find the fonts. Also, you may add debugging messages to LoadFont.c and print 'fontdir', 'xfontname' and 'font' variables. Then you will know everything. This is how I found my problems. Martin -----Original Message----- From: Kishore Kumar ####@####.#### Sent: Thursday, March 23, 2006 4:22 AM To: ####@####.#### Subject: RE: [nanogui] using fltk fonts system with nano the debug output look so >XLoadFont('fixed') = '(null)' [0] Its not able to find the 'fixed' font. Regards, Kishore --------------------------------------------------------------------- To unsubscribe, e-mail: ####@####.#### For additional commands, e-mail: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] using fltk fonts system with nano
From: Kishore Kumar ####@####.#### Date: 23 Mar 2006 17:01:46 +0000 Message-Id: <1143133270.26646.36.camel@kishore.localdomain> Hi, I work on a embedded system so my fonts directory see a bit different. I found a directory for fonts at "/lib/fonts" and it did have "fontdir" with entries for 'fixed' In fontdir file:: fixed 5x7.bdf BDF n 50 70 fixed 6x13.bdf BDF n 50 120 micro micro.bdf BDF n 50 40 helvetica helvB08.bdf BDF n 75 80 helvetica helvB10.bdf BDF n 75 100 helvetica helvB12.bdf BDF n 75 120 .... but these are only for the bdf files. I think I can just change bdf file to pcf to make it work.Anyway ,I hope this tip would help me move in the right direction. Regards, Kishore Am Donnerstag, den 23.03.2006, 08:16 -0800 schrieb Martin Kajdas: > I would use a complete path in PCF_FONT_DIR like: > PCF_FONT_DIR = /usr/lib/X11/fonts/pcf > Then, this is where your font files need to be on your target. > > Do you have a 'fixed.pcf' file in your /usr/lib/X11/fonts/pcf (in my > case) directory on your target? > > If your fixed font has a different file name then you need the fonts.dir > file with the line like: > some_fixed_font_file.pcf fixed > > You need to resolve directory and naming issues because your program > cannot find the fonts. > > Also, you may add debugging messages to LoadFont.c and print 'fontdir', > 'xfontname' and 'font' variables. > Then you will know everything. This is how I found my problems. > Martin > > > -----Original Message----- > From: Kishore Kumar ####@####.#### > Sent: Thursday, March 23, 2006 4:22 AM > To: ####@####.#### > Subject: RE: [nanogui] using fltk fonts system with nano > > > the debug output look so > > >XLoadFont('fixed') = '(null)' [0] > > Its not able to find the 'fixed' font. > Regards, > Kishore > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] using fltk fonts system with nano
From: "Martin Kajdas" ####@####.#### Date: 23 Mar 2006 17:48:02 +0000 Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC22914F1@mkmail.MKPROD.COM> I also work on embedded system and everything works from RAM disk but the idea is still the same. The font directory has to be located (match the configuration), it needs to have the right font files and the font.dir file if names do not match. Then it will work. I use pcf.gz and ttf fonts and after solving similar problems, it works now. Martin -----Original Message----- From: Kishore Kumar ####@####.#### Sent: Thursday, March 23, 2006 9:01 AM To: ####@####.#### Subject: RE: [nanogui] using fltk fonts system with nano Hi, I work on a embedded system so my fonts directory see a bit different. I found a directory for fonts at "/lib/fonts" and it did have "fontdir" with entries for 'fixed' In fontdir file:: fixed 5x7.bdf BDF n 50 70 fixed 6x13.bdf BDF n 50 120 micro micro.bdf BDF n 50 40 helvetica helvB08.bdf BDF n 75 80 helvetica helvB10.bdf BDF n 75 100 helvetica helvB12.bdf BDF n 75 120 .... but these are only for the bdf files. I think I can just change bdf file to pcf to make it work.Anyway ,I hope this tip would help me move in the right direction. Regards, Kishore Am Donnerstag, den 23.03.2006, 08:16 -0800 schrieb Martin Kajdas: > I would use a complete path in PCF_FONT_DIR like: > PCF_FONT_DIR = /usr/lib/X11/fonts/pcf > Then, this is where your font files need to be on your target. > > Do you have a 'fixed.pcf' file in your /usr/lib/X11/fonts/pcf (in my > case) directory on your target? > > If your fixed font has a different file name then you need the fonts.dir > file with the line like: > some_fixed_font_file.pcf fixed > > You need to resolve directory and naming issues because your program > cannot find the fonts. > > Also, you may add debugging messages to LoadFont.c and print 'fontdir', > 'xfontname' and 'font' variables. > Then you will know everything. This is how I found my problems. > Martin > > > -----Original Message----- > From: Kishore Kumar ####@####.#### > Sent: Thursday, March 23, 2006 4:22 AM > To: ####@####.#### > Subject: RE: [nanogui] using fltk fonts system with nano > > > the debug output look so > > >XLoadFont('fixed') = '(null)' [0] > > Its not able to find the 'fixed' font. > Regards, > Kishore > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### > --------------------------------------------------------------------- To unsubscribe, e-mail: ####@####.#### For additional commands, e-mail: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |