summaryrefslogtreecommitdiff
path: root/luaotfload-fonts.lua
Commit message (Collapse)AuthorAgeFilesLines
* Prefer names.prefmodifiers over names.subfamilyKhaled Hosny2010-01-161-1/+1
| | | | | This fixes style checking for many correctly named fonts, but breaks crappy fonts like LM and MnSymbol, both aren't a priority for me.
* CleanupKhaled Hosny2010-01-161-22/+11
|
* Drop otfl-luat-dum.lua dependencyKhaled Hosny2010-01-161-8/+7
|
* Remove some no longer needed codeKhaled Hosny2010-01-161-26/+3
| | | | | Now LuaTeX can return proper TTF names, we no longer need these dirty hacks.
* Make non-subfonts entries dictionaries as wellKhaled Hosny2010-01-151-2/+2
| | | | | Even if it is a single value (filename), to make our life easier in matching process.
* Update database version numberKhaled Hosny2010-01-151-1/+1
| | | | | We now use our own version number since we no longer compatible with luatex-fonts' version.
* Sanitize font namesKhaled Hosny2010-01-151-2/+5
| | | | | | | | Remove spaces, hyphens etc. so that we don't have to deal with many irregularities. Now I seem to process all fonts included with TeXlive correctly, and my +2000 files font collection with two errors only.
* Fix more buggy fonts (Linux Libertine Bold et al.)Khaled Hosny2010-01-151-8/+13
| | | | Now this code is getting really ugly!
* Add support for subfonts (ttc and dfont)Khaled Hosny2010-01-151-15/+22
|
* New table structureKhaled Hosny2010-01-151-18/+25
| | | | | | | | | | | | | | | | | | | | Now database looks like: mappings = { families = { ["familyname"] = { ["regular] = filename-regular.ttf ["bold"] = filename-bold.ttf ... } ... } psnames = { ["psnameregular"] = filename-regular.ttf ["psnamebold"] = filename-bold.ttf ... } }
* 'scan_os_fonts' is uselessKhaled Hosny2010-01-141-1/+2
| | | | | | If $OSFONTDIR is set, then it'll be appended to $OPENTYPEFONTS and $TTFONTS anyway, so we are just rescanning fonts. To be replaced by fontconfig based implementation.
* Our own font names extraction implementationKhaled Hosny2010-01-141-2/+50
| | | | | | Instead of using (the faster) fontloader.info, we now fully open the font to get more usable data, my be it is worth extending fontloader.info to cover our needs?
* Save the database under '$TEXMFVAR/tex/'Khaled Hosny2010-01-141-3/+6
|
* Guard against empty variablesKhaled Hosny2010-01-121-10/+15
| | | | | $OSFONTDIR in not always set, so check it and the others too. Also index only the base filename for files in texmf tree.
* RewriteKhaled Hosny2010-01-121-0/+123
Now we read $OSFONTDIR variable to load system fonts, $OPENTYPEFONTS and $TTFONTS to load fonts in texmf tree. Fontconfig support might be added later.