add glyph fallbacks

if glyph is not found in specified fontface, fallback fonts are checked
on by one until a glyph is found.
This commit is contained in:
chrox
2013-06-16 15:33:50 +08:00
parent 4c32e95358
commit bbfa6428aa
2 changed files with 15 additions and 0 deletions

View File

@@ -31,6 +31,11 @@ Font = {
-- font for info messages
infofont = "droid/DroidSans.ttf",
},
fallbacks = {
[1] = "freefont/FreeSans.ttf",
[2] = "droid/DroidSans.ttf",
[3] = "droid/DroidSansFallback.ttf",
},
fontdir = os.getenv("FONTDIR") or "./fonts",