diff options
author | Juliusz Chroboczek <jch@pps.jussieu.fr> | 2008-04-28 19:53:11 +0200 |
---|---|---|
committer | Juliusz Chroboczek <jch@pps.jussieu.fr> | 2008-04-28 19:53:11 +0200 |
commit | b0860282c3229d088840fa0758d8473ea6d8813b (patch) | |
tree | 9e0947c8ca5acceedac410071ebe5aadf872a025 | |
parent | 9c5594ad13e9143e86a7fd94f90858795ae2970b (diff) |
Add bdf and pcf to font priority table.
This mirrors the behaviour of the old mkfontdir, which prefers pcf to
bdf fonts.
-rw-r--r-- | mkfontscale.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/mkfontscale.c b/mkfontscale.c index 997304a..11dbd90 100644 --- a/mkfontscale.c +++ b/mkfontscale.c @@ -727,16 +727,24 @@ filePrio(char *filename) if(n < 4) return 0; if(strcmp(filename + n - 4, ".otf") == 0) - return 4; + return 6; if(strcmp(filename + n - 4, ".OTF") == 0) - return 4; + return 6; if(strcmp(filename + n - 4, ".ttf") == 0) - return 3; + return 5; if(strcmp(filename + n - 4, ".TTF") == 0) - return 3; + return 5; + if(strcmp(filename + n - 4, ".pcf") == 0) + return 4; + if(strcmp(filename + n - 4, ".PCF") == 0) + return 4; if(strcmp(filename + n - 3, ".gz") == 0) - return 2; + return 3; if(strcmp(filename + n - 2, ".Z") == 0) + return 2; + if(strcmp(filename + n - 4, ".bdf") == 0) + return 1; + if(strcmp(filename + n - 4, ".BDF") == 0) return 1; return 0; } |