[Note: my previous message of 10 September 2005 about fonts appears to
have disappeared from the Gna! wesnoth-dev archives, together with the
others posted that month prior to the migration from Savannah.  They
should still be available at Savannah to subscribers of the old list.]

I have now replaced DejaVuSans version 1.12 with 2.2 in trunk.  I also
patched our SDL_ttf to treat fonts containing glyphs with large ascenders
and descenders based on the characters actually used, instead of taking
the worst case values from the font (patch suggested by Stepan Roh).

To assist updating the list of codepoints in fonts.cfg, I have committed
to utils/ new versions of the scripts discussed in previous message
    https://mail.gna.org/public/wesnoth-dev/2005-07/msg00041.html

Here is a quick overview of the scripts:

codelist aggregates a list of integers into a list of ranges suitable
for fonts.cfg.

codeextract processes DejaVu's status.txt file to produce a list of
glyphs in the font.

codeglyphs extracts the list of glyphs required for a specific Wesnoth
translation.

codecomp compares a list of ranges as output by codelist with a baseline
list, for instance obtained using codeextract.

Running
    codeglyphs el_GR | codelist
gives me
    
10,32-95,97-126,235,243,252,900,902,904-906,908,910,913-929,931-937,940-943,945-969,972-974
as the current list of codepoints used by Greek in trunk.  10 is end of
line and should be removed from this list, but the others look valid.

Then, running
    echo 
'32-95,97-126,235,243,252,900,902,904-906,908,910,913-929,931-937,940-943,945-969,972-974'
 | codecomp
yields the conclusion that DejaVu 2.2 now supports all the Greek glyphs
we use.

I don't have time to properly test whether updating the list of codepoints
in fonts.cfg breaks anything, so I leave that to someone who can confirm
that it does work.

Greek should now be able to use DejaVuSans as the default font, since the
required glyphs were added in the last few releases.  Someone who can
read the translation should check that DejaVu gives reasonable results
(the translation currently uses FreeSans with DejaVu as the fallback).

-- [EMAIL PROTECTED]

Reply via email to