| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
This way we can load font names database from working directory etc.
|
|
|
|
|
| |
Simplify the database and the code to reflect recent changes in font
matching logic.
|
|
|
|
|
|
|
|
|
|
| |
With the previous commit, if we don't found a font with the requested
optical size, we return nothing, though we might have a matching font
name.
Now we store all matching names with no matching optical size and return
the first one, then we return the closest match (i.e. if the requested
size is 15pt and we have 10pt and 5pt match, we return the 10pt one).
|
|
|
|
|
|
| |
We now simply loop over the whole data.mappings table, so loading font
by family, fullname, psname etc is all the same, but it is a bit slower
now (~0.25s with syatemfonts.tex).
|
|
|
|
| |
Now, if we didn't find a matching family name, we then try fullname.
|
|
|
|
|
| |
Some fonts give only design size with no range, in this case we now will
assume range top == range bottom == design size.
|
|
|
|
|
| |
There is no performance difference, so it doesn't make sense to keep
removed fonts in the database.
|
|
|
|
| |
Patch from Taco.
|
|
|
|
| |
To protect against lua complaining about non existing file.
|
|
|
|
|
| |
Move function documentation inside the function block, and make
multi-line documents look better.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Now $TEXMFVAR/luatex-cache/latex/names/ which looks more logical than
$TEXMFVAR/scripts/luatexfontdb/.
|
| |
|
|
|
|
| |
+ some cosmetics
|
| |
|
| |
|
|
|
|
|
| |
Use os.type and os.name instead, if os.name doesn't return cygwin then
luatex need to be fixed.
|
|
|
|
|
|
|
| |
Group all our font names functions in |otfl-font-nms.lua| and make
|luaotfload.lua| load it. Now |otfl-font-dum.lua| is an unmodified,
we instead override the needed functions in the names module. This
decreases the redundancy that we had.
|
| |
|
|
|
|
|
| |
It seems that there is no performance regressions with purge... can you
test, maybe it would be better to make it default?
|
|
|
|
|
|
|
|
|
|
|
|
| |
* the info on a font now contains the checksum (might be needed for
font caching)
* very small optimizations in force mode
* database version bumping
* a new purge option (not taken into consideration yet)
* new mechanism to remove old entries in the database without
rebuilding everything, activated all the time but (for performance
reasons) will be activated only with the purge options in the very near
future.
|
|
|
|
| |
Also stronger checks on status
|
|
|
|
|
|
|
| |
- the status is now externalized in another file name (in the same
directory), so that it's not loaded when just asking for a font
- the status is now filename->last-modification-timestamp so that we
don't have to checksum the files (much faster)
|
| |
|
| |
|
|
|
|
|
|
| |
Rewrite the database script to be a more or less a luaotfload module (so
it can be invoked, say, by fontspec) and actual file writing to the
update script. Not finished yet.
|
|
|