From b0860282c3229d088840fa0758d8473ea6d8813b Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Mon, 28 Apr 2008 19:53:11 +0200 Subject: Add bdf and pcf to font priority table. This mirrors the behaviour of the old mkfontdir, which prefers pcf to bdf fonts. --- mkfontscale.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'mkfontscale.c') 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; } -- cgit v1.2.3