summaryrefslogtreecommitdiff
path: root/otfl-font-nms.lua
Commit message (Collapse)AuthorAgeFilesLines
...
* A bit of code reorganizationElie Roux2010-05-241-37/+34
| | | | | | (warning very strange and unreadable diff due to indentation change) Now scan_os_fonts just scans os fonts without checking if OSFONTDIR is set or not, but it's called only if OSFONTDIR is not set (makes the code a bit more understandable).
* If save directory doesn't exist, create itKhaled Hosny2010-05-211-2/+6
|
* fix licenses and readme for context-derived files.Will Robertson2010-05-211-1/+1
|
* fix for when logs.info doesn't existWill Robertson2010-05-201-0/+1
| | | | | | (luat-ovr is only loaded with luaotfload, not when mkluatexfontdb is run separately) not sure how I missed this the other day
* Initializing kpse.init_progElie Roux2010-05-191-2/+8
| | | | | | This prevents the call to the pk maker program (that prints an error saying that the pk already exists). This file is not really the place to put such an initialization, I think it should go in the format, but we cannot right now.
* Revert "these are typos from a few commits ago, right?"Will Robertson2010-05-191-6/+6
| | | | This reverts commit 0dd503b00ed24cc4a6628e7c0059c3b20fe0e177.
* temporary fix to avoid LastResort.ttfWill Robertson2010-05-191-0/+23
| | | | Sorry no time to implement a general solution
* generalise which extensions to check (& filter out .ttc on Mac)Will Robertson2010-05-191-5/+26
|
* these are typos from a few commits ago, right?Will Robertson2010-05-191-6/+6
| | | | logs.info certainly doesn't work on my setup...
* simplify logging slightlyWill Robertson2010-05-191-4/+4
|
* don't duplicate code when looping through extsWill Robertson2010-05-191-7/+5
|
* fix static_osx_dirsWill Robertson2010-05-191-4/+5
|
* don't fail if the extension is missingWill Robertson2010-05-191-1/+2
| | | | | (this isn't impossible, but probably only if we're using fc-list in Mac OS X...)
* oopsElie Roux2010-05-191-2/+5
|
* This commit should fix everything about the ofm and tfm priorityElie Roux2010-05-181-3/+15
|
* Fixing the log level when the database is updated inside a documentElie Roux2010-05-181-4/+25
| | | | To do so I added a logs.info function to print something on the terminal and in the logs.
* A bit of documentationElie Roux2010-05-181-0/+5
|
* If the specification is just a filename, not looking for it in the databaseElie Roux2010-05-181-0/+16
| | | | Now if specification.name ends by a font file extention, we look for the font file first with kpse and then in the database.
* Removing the .tfm and .ofm additional extentionElie Roux2010-05-181-2/+2
| | | | Without this my .ofm fonts don't work... Does this commit do something else wrong?
* Printing the name of the loaded database file in the logElie Roux2010-05-171-5/+6
|
* Fix loading TFM fonts with OSFONTDIR setKhaled Hosny2010-05-171-5/+10
| | | | | | If OSFONTDIR is set non-TFM files will be found first if TFM file is asked for, I'm not into the mode of digging the source of this in ConTeXt code, so just force TFM lookup by appending .tfm (or .ofm).
* Fix bug in the previous commitKhaled Hosny2010-05-171-1/+1
|
* Only index the last found instance of a fontKhaled Hosny2010-05-171-12/+26
| | | | | | We were keeping previously found versions of the font in the database and only overriding the status[filename].index which is useless since names.resolve will then found the first instance.
* Measures to avoid re-scanning filesKhaled Hosny2010-05-171-26/+27
| | | | | | We now index TEXMF fonts by their base names not absolute paths, and we check if the font already indexed. This simplifies other parts of the code.
* 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-161-34/+26
| | | | | 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.
* Adding an error when fontloader is unable to open a fontElie Roux2010-05-151-2/+5
|
* CosmeticsKhaled Hosny2010-05-141-13/+37
| | | | Avoid very long lines.
* 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.
* 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
* TypoKhaled Hosny2010-05-091-1/+1
|
* Change the default cache pathKhaled Hosny2010-04-271-2/+3
| | | | | Per Manuel's suggestion, we now use TEXMVAR/luatex/generic/luaotfload/ instead of TEXMVAR/luatex-cache/latex/.
* 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
|
* 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.
* 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
|