Hi,

I propose here how to get a default font for FreeType.

TrueType font has CodePageRange on OS/2 table. if we can
have an exchange table between locale and CP, could we use
it as default font?
I think that it's useful for some languages which standard
PS fonts doesn't support.

1. we check it whether standard PS fonts support your locale
   or not. if it's supported, dia decide a default font.
2. if not so, then dia find the TrueType font. check it
   whether that font support your locale or not. if it's
   supported, make a list temporarily.
3. repeat 2 step until finish to find all of TTF.
4. if have a configuration file as .diarc (for example, can
   be written a font as gtkrc), find a font whether a list
   has the font name which is specified or not. if a list
   has it, decide a default font, if not, uses a first entry
   on a list as default font.

How do you think that?

--
Akira TAGOH  : [EMAIL PROTECTED]  / Japan GNOME Users Group
[EMAIL PROTECTED] : [EMAIL PROTECTED] / GNOME-DB Project
             : [EMAIL PROTECTED]   / Red Hat, Inc.
             : [EMAIL PROTECTED]   / Debian Project
_______________________________________________
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list

Reply via email to