As for the missing bold, it seems there's a bug in the naming scheme:
Ii the bold italic file gets read from the disk before the bold, then
you don't get the right entries. It so happens that most of the fonts
in that dir had bold before bold italic, e.g.

fontnames | identifying ttf font /usr/share/fonts/vista/Verdanai.ttf
fontnames | identifying ttf font /usr/share/fonts/vista/Verdana.ttf
fontnames | identifying ttf font /usr/share/fonts/vista/Verdanaz.ttf
fontnames | identifying ttf font /usr/share/fonts/vista/Verdanab.ttf

fontnames | identifying otf font
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf
fontnames | identifying otf font /usr/share/fonts/vista/C-series/Calibri.otf
fontnames | identifying otf font
/usr/share/fonts/vista/C-series/Calibri Italic.otf
fontnames | identifying otf font
/usr/share/fonts/vista/C-series/Calibri Bold.otf

So, I've added some extra code (patch attached) to print the names it
adds to the hash. As you can see there is a clash: both bold italic
and bold want to "own" bold...

fontnames | identifying ttf font /usr/share/fonts/vista/Verdanaz.ttf
add | verdana bold italic -> {ttf, Verdana Bold Italic,
/usr/share/fonts/vista/Verdanaz.ttf, ...}
add | verdanabolditalic -> {ttf, Verdana Bold Italic,
/usr/share/fonts/vista/Verdanaz.ttf, ...}
add | verdana-bolditalic -> {ttf, Verdana Bold Italic,
/usr/share/fonts/vista/Verdanaz.ttf, ...}
add | verdanabolditalic -> {ttf, Verdana Bold Italic,
/usr/share/fonts/vista/Verdanaz.ttf, ...}
add | verdana bold -> {ttf, Verdana Bold Italic,
/usr/share/fonts/vista/Verdanaz.ttf, ...}
add | verdanabold -> {ttf, Verdana Bold Italic,
/usr/share/fonts/vista/Verdanaz.ttf, ...}
fontnames | identifying ttf font /usr/share/fonts/vista/Verdanab.ttf
add | verdana bold -> {ttf, Verdana Bold,
/usr/share/fonts/vista/Verdanab.ttf, ...}
add | verdanabold -> {ttf, Verdana Bold,
/usr/share/fonts/vista/Verdanab.ttf, ...}
add | verdana-bold -> {ttf, Verdana Bold,
/usr/share/fonts/vista/Verdanab.ttf, ...}
add | verdanabold -> {ttf, Verdana Bold,
/usr/share/fonts/vista/Verdanab.ttf, ...}
add | verdana bold -> {ttf, Verdana Bold,
/usr/share/fonts/vista/Verdanab.ttf, ...}
add | verdanabold -> {ttf, Verdana Bold,
/usr/share/fonts/vista/Verdanab.ttf, ...}

fontnames | identifying otf font
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf
add | calibri bold italic -> {otf, Calibri Bold Italic,
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...}
add | calibribolditalic -> {otf, Calibri Bold Italic,
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...}
add | calibri-bolditalic -> {otf, Calibri Bold Italic,
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...}
add | calibribolditalic -> {otf, Calibri Bold Italic,
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...}
add | calibri bold -> {otf, Calibri Bold Italic,
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...}
add | calibribold -> {otf, Calibri Bold Italic,
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...}
fontnames | identifying otf font
/usr/share/fonts/vista/C-series/Calibri Bold.otf
add | calibri bold -> {otf, Calibri Bold,
/usr/share/fonts/vista/C-series/Calibri Bold.otf, ...}
add | calibribold -> {otf, Calibri Bold,
/usr/share/fonts/vista/C-series/Calibri Bold.otf, ...}
add | calibri-bold -> {otf, Calibri Bold,
/usr/share/fonts/vista/C-series/Calibri Bold.otf, ...}
add | calibribold -> {otf, Calibri Bold,
/usr/share/fonts/vista/C-series/Calibri Bold.otf, ...}
add | calibri bold -> {otf, Calibri Bold,
/usr/share/fonts/vista/C-series/Calibri Bold.otf, ...}
add | calibribold -> {otf, Calibri Bold,
/usr/share/fonts/vista/C-series/Calibri Bold.otf, ...}

I don't know how to fix since it's not clear to me what names you
actually want...

On Wed, Aug 13, 2008 at 10:43 AM, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
>
>
> Vasile Gaburici wrote:
>>
>> I've switched to the rsync-ed minimals on Linux. There are still some
>> problems with fonts:
>>
>> 1) Bold is still missing from fonts pulled via OSFONTDIR, e.g.:
>>
>> verdana                           Verdana
>> /usr/share/fonts/vista/Verdana.ttf
>> verdana bold italic               Verdana Bold Italic
>> /usr/share/fonts/vista/Verdanaz.ttf
>> verdana italic                    Verdana Italic
>> /usr/share/fonts/vista/Verdanai.ttf
>
> This works OK for ttf fonts on my linux machine, but I don't
> have the ttf version of verdana, so perhaps it is something
> special to that font.
>
>> 2) OSFONTDIR is not recursive. To get the above I used "export
>> OSFONTDIR=/usr/share/fonts/vista/", just
>> "export OSFONTDIR=/usr/share/fonts/" doesn't work.
>
> Yes, recursion would be nice.
>
> Best wishes,
> Taco
>
>
diff -up ./font-syn.lua.nobold ./font-syn.lua
--- ./font-syn.lua.nobold	2008-08-13 12:24:32.000000000 +0300
+++ ./font-syn.lua	2008-08-13 12:52:40.000000000 +0300
@@ -27,7 +27,7 @@ fonts.names.be_clever  = true
 fonts.names.enabled    = true
 fonts.names.autoreload = toboolean(os.env['MTX.FONTS.AUTOLOAD'] or os.env['MTX_FONTS_AUTOLOAD'] or "no")
 fonts.names.cache      = containers.define("fonts","data",fonts.names.version,true)
-fonts.names.trace      = false
+fonts.names.trace      = true
 
 --[[ldx--
 <p>It would make sense to implement the filters in the related modules,
@@ -120,8 +120,18 @@ function fonts.names.identify(verbose)
     local function add(n,fontname,filename,suffix, sub)
         n = n:lower()
         if not mapping[n] then mapping[n], nofok = { suffix, fontname, filename, sub }, nofok + 1 end
+        if fonts.names.trace then
+           logs.report("add","%s -> {%s, %s, %s, ...}", n, suffix, fontname, filename)
+           logs.push()
+           logs.pop()
+        end
         n = n:gsub("[^%a%d]","")
         if not mapping[n] then mapping[n], nofok = { suffix, fontname, filename, sub }, nofok + 1 end
+        if fonts.names.trace then
+           logs.report("add","%s -> {%s, %s, %s, ...}", n, suffix, fontname, filename)
+           logs.push()
+           logs.pop()
+        end
     end
     local function check(result, filename, suffix, is_sub)
         local fontname = result.fullname
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to