Re: [gtk-i18n-list] `.pcf' font not accessible from pango



hi,

mpsuzuki hiroshima-u ac jp writes:
[...]
> >Now `VICE CBM' appears in the fontselector widget (vice-cbm.bdf gets
> >loaded; checked with strace)
> 
> Good.
> 
> >but choosing the font is not showing my CBM font but probably default
> >`Sans'.
> 
> Hmm. Any BDF/PCF fonts are usable in your GTK2 application?
> All BDF/PCF fonts are ignored (and fallback to other fonts)?

How can I distinguish if easily whether bdf/pcf fonts are
accessible or not? My general feeling is that fonts in those formats
are not available in gtk2 applications as no stock x11 font directory
(and there I found many .pcf fonts in .pcf.gz format) contains a
fonts.cache-1:  
  bash> ls /usr/X11R6/lib/X11/fonts/
  100dpi/    CID/       local/     OTF/       Type1/
  75dpi/     encodings/ misc/      TTF/       util/
  bash> ls /usr/X11R6/lib/X11/fonts/*/fonts.cache*
  /usr/X11R6/lib/X11/fonts/OTF/fonts.cache-1
  /usr/X11R6/lib/X11/fonts/Type1/fonts.cache-1

fc-list shows many fonts but those probably come from my other font
dirs:
  bash> pwd
  /usr/share/fonts/default
  bash> find . -name "fonts.cache-1"
  ./fonts.cache-1
  ./ghostscript/fonts.cache-1
  ./ttf/fonts.cache-1
  ./Type1/fonts.cache-1
    
[...]
> >What's the best way to supply an application specific font?
> 
> Umm, I have no idea. I'm afraid that Pango has no backends
> that works with specific application, and no way to pass
> application specific informations to backends. Furthermore,
> I'm afraid that it's difficult (or impossible?) to bind
> suitable backend per applications (e.g. Mozilla uses Cairo
> backend, GAIM uses XFT backend, etc etc). So, if someone
> wants to show application-specific font in the font menu of
> his application, he may have to write font menu widget from
> scratch, without pango, without font-config.

My application is not offering a font selection widget. I just want to
use my single font (with petcii mapping) within my application in
special widgets to show text in the original commodore font to the
user. The petcii mapping is handled within the application 
(the vice emulator).
Ideally I don't want the user mess around with local font
configuration settings (e.g. adding a path to ~/.fonts.conf) as this
is error prone. 
With my old approach in the GTK1 application the font just works for
all users if the application is well installed.

[...]
> Umm, It makes me afraid about the font can cause problems
> when it's accessed via Unicodized libraries, like font-config,
> XFT and Pango.

I don't understand this. 

> 
> Regards,
> mpsuzuki
> 

I have tried to convert vice-cbm.bdf to a ttf font using `fonttosfnt':
  bash> /work/src/X-work/fonts/app/fonttosfnt/fonttosfnt -v -o vice-cbm.ttf vice-cbm.bdf
  vice-cbm.bdf VICE CBM Regular: 1 sizes (symbol)
  Couldn't select character map: 6.
Any idea?

Let me know if this is off-topic for this list. Although a further
contact for help would be great!

Thanx again in advance,
martin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]