summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Update the database if a font is not foundKhaled Hosny2010-05-161-7/+31
| | | | We now try to update the database if a font is not found.
* Revert "Fixing a bug if OSFONTDIR is not empty"Khaled Hosny2010-05-161-18/+1
| | | | This reverts commit f5fcb4e933f142a7b803b42f7870b5de0ce1117c.
* CosmeticKhaled Hosny2010-05-161-18/+34
|
* SimplifyKhaled Hosny2010-05-161-1/+1
| | | | | | | If it isn't a font collection file (which is true if we reach here) then the index always == 1. As a side effect, fixes a mysterious bug with --no-shell-escape causing all files to have empty index and the same timestamp.
* SimplifyKhaled Hosny2010-05-161-2/+1
|
* Tolerate not being able to run |fc-list|Khaled Hosny2010-05-161-10/+12
| | | | | This will avoid the error message, but also no system fonts will be scanned.
* Auto generate font names databaseKhaled Hosny2010-05-161-16/+16
| | | | | If no font names database is found, generate a new one. Broken unless luatex is run with "--shell-escape".
* Simplify the codeKhaled Hosny2010-05-162-44/+27
| | | | | The |status| table need not to reside in a separate file, it is now part of the font names database itself.
* Simplify the codeKhaled Hosny2010-05-161-8/+6
| | | | Always scan directories recursively, it doesn't harm.
* It's certainly better to scan the macos font dirs recursivelyElie Roux2010-05-151-1/+1
|
* Fixing a bug if OSFONTDIR is not emptyElie Roux2010-05-151-3/+19
| | | | | if OSFONTDIR was not empty, the texmf variable ended true and the filenames in the database were not complete.
* Attempt to fix the behaviour on macosxElie Roux2010-05-151-16/+40
| | | | | | Now if we are under macosx and if osfontdir is empty, we don't rely on fc-list to give us the system fonts, but we use some static directories.
* Removing the useless mkluatexfontdb tableElie Roux2010-05-151-8/+7
|
* Adding an error when fontloader is unable to open a fontElie Roux2010-05-151-2/+5
|
* change script locationManuel Pégourié-Gonnard2010-05-151-3/+4
|
* CosmeticsKhaled Hosny2010-05-141-13/+37
| | | | Avoid very long lines.
* Pump version numberKhaled Hosny2010-05-131-6/+6
|
* Documentation updatesv1.07Khaled Hosny2010-05-121-39/+61
|
* Showing a log message only once (it used to be present 10s of times in the log)Elie Roux2010-05-111-1/+6
|
* Make sure the font exists on the diskKhaled Hosny2010-05-111-6/+14
| | | | | | | | 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.
* Avoid too long linesKhaled Hosny2010-05-111-23/+42
|
* Skip names database for TFM fontsKhaled Hosny2010-05-111-0/+5
| | | | | | | if a tfm (or ofm) files exists with the same name, skip font names database. closes #3
* Fix call to callback.add.Manuel Pégourié-Gonnard2010-05-101-1/+1
|
* luaextra -> lualibsKhaled Hosny2010-05-111-1/+1
|
* MinorKhaled Hosny2010-05-101-1/+1
|
* Not using luadirect anymoreElie Roux2010-05-101-2/+2
|
* Adapting to the new luatexbase packageElie Roux2010-05-102-15/+16
| | | | | * using the new luatexbase callback functions * fixing a tiny bug
* CosmeticsKhaled Hosny2010-05-101-12/+31
|
* Adaptation to luatexbase (just small changes) and removing functions that ↵Elie Roux2010-05-102-82/+8
| | | | are now in luaextra.
* All caps file nameKhaled Hosny2010-05-092-2/+2
| | | | For, foolish, consistency.
* Update the minimum luatex versionKhaled Hosny2010-05-092-4/+7
| | | | | We are now stabilizing against 0.60.x, also make the message less dramatic.
* TypoKhaled Hosny2010-05-091-1/+1
|
* Updating to latest ConTeXt stable (2010.05.08)Khaled Hosny2010-05-0913-269/+442
|
* Change the default cache pathKhaled Hosny2010-04-273-4/+5
| | | | | Per Manuel's suggestion, we now use TEXMVAR/luatex/generic/luaotfload/ instead of TEXMVAR/luatex-cache/latex/.
* Documentation update, few TODO's still.Khaled Hosny2010-04-091-50/+79
|
* Revert "Import ConTeXt math modules"Khaled Hosny2010-04-0513-148151/+0
| | | | | 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.
* Fix loading subfontsKhaled Hosny2010-04-041-8/+7
| | | | | | | 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).
* |table.insert()| is slowerKhaled Hosny2010-04-041-3/+3
| | | | The difference is negligible, but this make the code more consistent.
* Simplify a bitKhaled Hosny2010-04-041-11/+5
|
* Import ConTeXt math modulesKhaled Hosny2010-04-0213-0/+148151
| | | | | | | | | 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.
* Try fontname and ps fullname tooKhaled Hosny2010-04-021-1/+3
|
* Some cleanup + a bug fixKhaled Hosny2010-04-021-21/+18
| | | | | | | | 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.
* Support 'opbd' (OpenType protrusion) featureKhaled Hosny2010-04-023-11/+363
| | | | | | | 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.
* Return the original name, not the normalised oneKhaled Hosny2010-04-021-1/+1
| | | | When we fallback to filename lookup, we should return the original name.
* Oops!Khaled Hosny2010-04-021-2/+2
|
* Check if kpse can find font names database firstKhaled Hosny2010-04-021-1/+4
| | | | This way we can load font names database from working directory etc.
* Clean database generation code a bitKhaled Hosny2010-04-022-64/+18
| | | | | Simplify the database and the code to reflect recent changes in font matching logic.
* Fix optical size matchingKhaled Hosny2010-04-022-15/+41
| | | | | | | | | | 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).
* Rewrite font matching logic to be more consistentKhaled Hosny2010-04-022-52/+68
| | | | | | 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).
* Support loading fonts by fullnameKhaled Hosny2010-04-012-16/+22
| | | | Now, if we didn't find a matching family name, we then try fullname.