summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-05-12Documentation updatesv1.07Khaled Hosny
2010-05-11Showing a log message only once (it used to be present 10s of times in the log)Elie Roux
2010-05-11Make sure the font exists on the diskKhaled Hosny
Sometimes the database is outdated in the font no longer exits in the saved path, now we make sure the file exists before returning path to luatex. This way the user gets the good old "font not loadable" error, instead of mysterious backend error and program exit. Later we may try to update the database at this point.
2010-05-11Avoid too long linesKhaled Hosny
2010-05-11Skip names database for TFM fontsKhaled Hosny
if a tfm (or ofm) files exists with the same name, skip font names database. closes #3
2010-05-10Fix call to callback.add.Manuel Pégourié-Gonnard
2010-05-11luaextra -> lualibsKhaled Hosny
2010-05-10MinorKhaled Hosny
2010-05-10Not using luadirect anymoreElie Roux
2010-05-10Adapting to the new luatexbase packageElie Roux
* using the new luatexbase callback functions * fixing a tiny bug
2010-05-10CosmeticsKhaled Hosny
2010-05-10Adaptation to luatexbase (just small changes) and removing functions that ↵Elie Roux
are now in luaextra.
2010-05-09All caps file nameKhaled Hosny
For, foolish, consistency.
2010-05-09Update the minimum luatex versionKhaled Hosny
We are now stabilizing against 0.60.x, also make the message less dramatic.
2010-05-09TypoKhaled Hosny
2010-05-09Updating to latest ConTeXt stable (2010.05.08)Khaled Hosny
2010-04-27Change the default cache pathKhaled Hosny
Per Manuel's suggestion, we now use TEXMVAR/luatex/generic/luaotfload/ instead of TEXMVAR/luatex-cache/latex/.
2010-04-09Documentation update, few TODO's still.Khaled Hosny
2010-04-05Revert "Import ConTeXt math modules"Khaled Hosny
This code proved to cause harm than good; unicode-math is doing better without it. So, revert it back, until we are ready for it.
2010-04-04Fix loading subfontsKhaled Hosny
Previously, we relied in the fact that origname contains the subfont in the form of |foo.otf(subfoo)| and that luatex would then load the right font, but this is not what the rest of the code expects and cause some bugs. We now return the filename and subfont properly (i.e.separately).
2010-04-04|table.insert()| is slowerKhaled Hosny
The difference is negligible, but this make the code more consistent.
2010-04-04Simplify a bitKhaled Hosny
2010-04-02Import ConTeXt math modulesKhaled Hosny
Modules that provide OpenType and Unicode math related functionality, not very tested yet, but it seems to magically fix some of unicode-math issues. May be it should be trimmed a bit, since a good chunk of the code is of no use to us.
2010-04-02Try fontname and ps fullname tooKhaled Hosny
2010-04-02Some cleanup + a bug fixKhaled Hosny
If the family name is matching but no matching style, we would not return any thing, we now just return a random match (e.g. the user asks for XITS Math/Regular but gets XITS Math/Math), I hope in such rare cases there is only one match, else one is better giving proper style or fullname.
2010-04-02Support 'opbd' (OpenType protrusion) featureKhaled Hosny
Code scrapped from ConTeXt, AFAIK, no font implements OpenType optical bounds (on of Linux Libertine font has traces of it), but I plan to use it in my fonts. The committed feature file is prepared for Pagella, we can later have font specific feature files like this.
2010-04-02Return the original name, not the normalised oneKhaled Hosny
When we fallback to filename lookup, we should return the original name.
2010-04-02Oops!Khaled Hosny
2010-04-02Check if kpse can find font names database firstKhaled Hosny
This way we can load font names database from working directory etc.
2010-04-02Clean database generation code a bitKhaled Hosny
Simplify the database and the code to reflect recent changes in font matching logic.
2010-04-02Fix optical size matchingKhaled Hosny
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).
2010-04-02Rewrite font matching logic to be more consistentKhaled Hosny
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).
2010-04-01Support loading fonts by fullnameKhaled Hosny
Now, if we didn't find a matching family name, we then try fullname.
2010-04-01Fix optical size with no range_top/bottomKhaled Hosny
Some fonts give only design size with no range, in this case we now will assume range top == range bottom == design size.
2010-04-01Enable font cachingKhaled Hosny
Update from ConTeXt, changes to save fonts under TEXMFVAR/luatex-cache/latex/fonts.
2010-04-01Pump dateKhaled Hosny
Also, fix date and version number to match that of latex package.
2010-03-31Test with node mode tooKhaled Hosny
2010-03-30Purge removed fonts by defaultKhaled Hosny
There is no performance difference, so it doesn't make sense to keep removed fonts in the database.
2010-03-30Do garbage collectionKhaled Hosny
Patch from Taco.
2010-03-29Make sure names file exist before loading itKhaled Hosny
To protect against lua complaining about non existing file.
2010-03-29Update repository linkKhaled Hosny
2010-03-28Fix outdated commentsKhaled Hosny
2010-03-28CosmeticsKhaled Hosny
Move function documentation inside the function block, and make multi-line documents look better.
2010-03-28Update doc a bitKhaled Hosny
2010-03-28Include alt_getopt.lua for nowKhaled Hosny
2010-03-24Make sanitize() Unicode friendlyKhaled Hosny
2010-03-24Make some frequently used functions localKhaled Hosny
2010-03-24Make font names case insensitiveKhaled Hosny
2010-03-24Make mkluatexfontdb.lua executableKhaled Hosny
2010-03-24Change the default database directoryKhaled Hosny
Now $TEXMFVAR/luatex-cache/latex/names/ which looks more logical than $TEXMFVAR/scripts/luatexfontdb/.