summaryrefslogtreecommitdiff
path: root/otfl-font-nms.lua
Commit message (Collapse)AuthorAgeFilesLines
* Unify logging systemsPhilipp Stephani2011-07-241-18/+25
| | | | | | | | | Until now, the logging functions in `otfl-luat-ovr.lua` and the function `log` in `otfl-font-nms.lua` used different syntax conventions, which resulted in suboptimal output when the functions in `otfl-font-nms.lua` were called from the LuaLaTeX module (in contrast to `mkluatexfontdb`). Spotted by Karl Berry, see http://tug.org/pipermail/lualatex-dev/2011-July/001274.html
* Support lualatex-platform module if availablePhilipp Stephani2011-04-281-1/+51
| | | | Use font list reported by operating system if possible, default font directory list otherwise
* Hack to support Demi fontsKhaled Hosny2011-04-211-3/+3
|
* A hack to get libertine's bold recognisedKhaled Hosny2011-03-011-1/+2
|
* Fix infinite loopKhaled Hosny2011-02-051-1/+1
| | | | | | | | names.load() calls names.update() without an argument if no font database is found, but the later will call the former if invoked without an argument. Now calling names.update() with an empty names database. fixes #23
* Fix a typo in fonts.names.scan()Khaled Hosny2011-02-041-1/+1
| | | | This was a debugging leftover that went unnoticed.
* Remove --database-dir and --sys optionsKhaled Hosny2010-11-121-8/+16
| | | | | | | | | | | * --database-dir is useless anyway since we don't support loading names database from arbitrary path. * --sys (and mkluatexfontdb-sys) are dangerous since we will load user specific fonts (in ~/.fonts for example) which can not be loaded by other users (can be security concern as well). If there is real need, we should then implement it properly. + some clean up and less code duplication in mkluatexfontdb.
* Reject fonts missing 'names' tableKhaled Hosny2010-09-191-1/+13
| | | | | | | Fonts should always have a names table, I suppose, so if not we should reject the font. Reported by Philipp Stephani.
* Move code aroundKhaled Hosny2010-07-111-14/+0
| | | | | | Move code that does not belong to otfl-font-nms.lua to luaotfload.dtx. Please test.
* Cosmetics and minor cleanupsKhaled Hosny2010-07-111-25/+20
|
* Remove the progress bar and simplify the codeKhaled Hosny2010-07-111-55/+8
| | | | | The database building/updating that the, unusual, progress bar is not needed.
* Re-enable ttc fonts in MacOSXKhaled Hosny2010-06-251-7/+2
| | | | | This way it is easier for people to actually find the broken ones so we can blacklist them explicitly.
* Really fix printing file name before loading itKhaled Hosny2010-06-251-0/+1
| | | | | io.flush() is needed, otherwise nothing gets printed until the loading is finished.
* Handle trailing spaces and inline commentsKhaled Hosny2010-06-251-0/+3
| | | | This turned out to be easier that I first thought.
* Remove and old hack and a potential bugKhaled Hosny2010-06-251-20/+7
| | | | | I didn't know how to check if a table contains a certain value so I had this value=true hack, now I know better so removed it.
* Implement general font blacklisting mechanismKhaled Hosny2010-06-251-25/+33
| | | | | | | | | | | | | Blacklisted fonts are listed one per line in a file named "otfl-blacklist.cnf", there can be as much copies of this file as kpse can find (we look for "tex" format despite of the file extension, so it can exist any where a .tex file can) and all found files will be loaded an read. The parser is rather dump, it assumes a good formated file; one font per line, no trailing spaces, no inline comments, lines starting with "%" and empty lines will be ignored, any other lines will end in the blacklist table without any further processing.
* Revert "Unused code"Khaled Hosny2010-06-241-0/+7
| | | | | | This reverts commit 1473edf932ec729f4a41736fb7ee52654c848d59. This broke mkluatexfontdab.
* Unused codeKhaled Hosny2010-06-221-7/+0
|
* Lualibs already defines a table.contains() functionKhaled Hosny2010-06-221-12/+0
|
* For consistency with latest ConTeXtKhaled Hosny2010-06-141-1/+1
| | | | The less locally changed ConTeXt files, the simpler my life, so I'm adapting ConTeXt suggested paths instead.
* CosmeticsKhaled Hosny2010-06-141-15/+11
| | | | Utilize lualibs functions when apporiate.
* Fallback to regularKhaled Hosny2010-06-081-0/+5
| | | | | | | If the requested style is not found, fallback to regular. I think this broke in commit b9d377647240804d7d85429a18e1bdf0ff00823c closes #13
* Provide a |fonts.names.scan()| functionKhaled Hosny2010-06-071-1/+14
| | | | | It takes a dir path as input and index its fonts temporarily in the names database, changes are not saved to the disk.
* Log loaded font file before calling |load_font()|Khaled Hosny2010-06-071-6/+6
|
* improve messages slightlyWill Robertson2010-06-051-12/+11
|
* be more verbose when updating the font databaseWill Robertson2010-06-051-2/+2
| | | | | (so users know what's taking so long)
* Continuing the fonts.conf parsing.Elie Roux2010-06-041-17/+67
| | | | | | * comments are handled correctly * include are handled * directories containing "texmf" are not explored... maybe it should be changed?
* Remove spurious elseKhaled Hosny2010-06-041-2/+0
| | | | | This was a leftover from old code. This should fix Adobe Garamond Pro issue.
* Handle bypassing TFM fonts properlyKhaled Hosny2010-05-311-18/+0
| | | | | | | | We now detect tfm fonts much earlier and force a file based lookup, thus bypassing |names.resolve()| completely. So, now |\font\tenrm=cmr10| is exactly the same as |\font\tenrm=file:cmr10| as long as there is a tfm/ofm file named cmr10.
* This code path have never been usedKhaled Hosny2010-05-311-22/+0
|
* Fix file extension filteringKhaled Hosny2010-05-311-1/+1
| | | | | Make sure to check last file extension; ignoring files like foo.ttf.bar-x.xyz.
* Simply file extension handlingKhaled Hosny2010-05-311-16/+12
|
* Fix when a directory is passed to path_normalizeKhaled Hosny2010-05-301-1/+1
| | | | | kpse.readable_file() returns nil if given a directory, so disable this check for now.
* Suppress some warnings when not in verbose modeWill Robertson2010-05-251-2/+2
|
* suppress some warnings when default settingsWill Robertson2010-05-251-5/+9
|
* Fix symlink detectionKhaled Hosny2010-05-251-1/+7
|
* Reading symlinks under non-Windows platformElie Roux2010-05-251-5/+13
| | | | Patch to detect symlinks and follow them in path normalization. Reduces my database by 30 fonts. Please test (especially on Mac OSX).
* docElie Roux2010-05-241-1/+10
|
* Now we use the new system even on UnixesElie Roux2010-05-241-48/+9
| | | | This works fine on my system. Actually it works even better than fc-list, as it finds arial.ttf which fc-list doesn't... strange... please test.
* Oops...Elie Roux2010-05-241-1/+0
|
* Everything works fine under Windows nowElie Roux2010-05-241-1/+1
| | | | Strangely, OSFONTDIR is set under windows... It works even if it's unset anyway.
* Changing the test to see if a font has already been loadedElie Roux2010-05-241-5/+4
| | | | On my system a lot of fonts were indexed two times, this seems to fix it. It's not perfect but that's all we can do with the current database (please tell me if it introduces some regressions).
* First attempt to read fonts.confElie Roux2010-05-241-10/+53
| | | | This seems to work OK... the code don't actually use it as there are other things to debug before, but the function that reads the file works ok on mine (please test on yours if you have time).
* Renaming scan_texmf_tree in scan_texmf_fontsElie Roux2010-05-241-2/+2
| | | | as we don't scan only texmf_tree if OSFONTDIR is set
* 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.