| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
This way when the file is moved around, its filename in the database
will be updated, as suggested by Elie.
|
|
|
|
|
| |
So that the old file content is not erased, right now if the script
ended unexpectedly, we are left with an empty file.
|
| |
|
|
|
|
|
|
| |
Store checksums of already loaded fonts in the database to avoids
reloading them, this isn't much faster but it avoids reloading the fonts
and the huge memory consumption. Is there a faster way to hash a file?
|
| |
|
|
|
|
| |
as it will change soon...
|
|
|
|
| |
+ Ooops, I missed one commit...
|
| |
|
|
|
|
| |
The script is no longer to be run standalone.
|
| |
|
|
|
|
|
|
|
|
|
| |
Now we scan the fonts only if we can write in the final file. There is
currently (if I understand correctly) no clean way to check if a folder
is writable or not in Lua: lfs.attributes will give you the string
returned by ls -l, but there is no simple way to know if we can actually
write, as we don't know if we are the owner, or if we have access to the
group...
|
|
|
|
| |
Useful for the --sys option
|
|
|
|
|
|
|
| |
If the texmf fonts are in fc-cache (which is the case in Debian's
TeX Live 2009, there were two entries in the database, one with
the filename and the other with the complete path, they were also
scanned twice.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Due to a bug in current luatex, some fonts would lack certain required
entries in names table, now we'll just ignore such fonts. The real bug
is fixed in luatex trunk anyway.
|
| |
|
| |
|
|
|
|
| |
Now we have some estimate of when the script will finish.
|
|
|
|
|
| |
`fc-list` returns a list of installed fonts, which simplify the parsing,
and of course I broke non-unix systems!
|
| |
|
|
|
|
|
|
|
| |
According to OpenType spec, size feature can define a common style name
for different optical sizes of the same font, now we use it.
See http://www.microsoft.com/typography/otspec/features_pt.htm#size
|
|
|
|
|
|
| |
Prefer different values of font names as suggested by TrueType specs.
See http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6name.html
|
|
|
|
|
| |
Store the 'raw' values, the matching logic should be moved to the
resolver function.
|
|
|
|
|
| |
oblique is now considered different as italic, and fixing database shape
for fonts with different fontfamilies.
|
|
|
|
|
|
|
|
|
|
| |
Now all the informations are printed in the guessed_style, for parsing
facilities. Light and Heavy are not treated as weight anymore (some
fonts are heavy regular or heavy bold in the same family). Treating the
condensed style separately. If it could be tested on a large database it
would help me improve it. Of course perverse styles like the ones of
semaphor are not guessed, but they are not usual styles so it's not a
problem.
|
|
|
|
|
|
| |
Now keys are font file names, in order to have all fonts listed (it
was not the case all the time). The values are raw_style and
guessed_style. Wdyt?
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Windows is a pain, as usual... I'm blocked on a bug where the command
line passed to popen is reshaped to contain linebreaks instead of
spaces, so the fc-cat of TeXLive cannot be called if TeXLive is under
C:/Program Files/ (grrr). I should report it to LuaTeX or TeXLive,
more certainly to MS but...
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Looking for the directories in fc-cat that actually contain fonts
and adding it to the directories to explore. Now system fonts are
available even on systems where OSFONTDIR is not set in texmf.cnf.
|
|/
|
|
| |
require() doesn't work with LuaTeX 0.50 from Debian.
|
|
|
|
| |
The paths are now absolute for files that are not in the texmf tree.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- making the script work under Windows (cygwin at least)
- creating several levels of verbosity
- logging explored directories by default
- fixing a bug with the . directory (at least under windows)
- not exploring same directory twice (the same directory can be in
OPENTYPEFONTS and TTFONTS)
- using dofile on old luatex versions instead of require (which raises
an error)
- adding checks before mkdir and file writing (should be tested under
Unix though, not really testable under Windows...)
|
|
|
|
|
| |
This fixes style checking for many correctly named fonts, but breaks
crappy fonts like LM and MnSymbol, both aren't a priority for me.
|
| |
|
| |
|
|
|
|
|
| |
Now LuaTeX can return proper TTF names, we no longer need these dirty
hacks.
|
|
|
|
|
| |
Even if it is a single value (filename), to make our life easier in
matching process.
|
|
|
|
|
| |
We now use our own version number since we no longer compatible with
luatex-fonts' version.
|
|
|
|
|
|
|
|
| |
Remove spaces, hyphens etc. so that we don't have to deal with many
irregularities.
Now I seem to process all fonts included with TeXlive correctly, and my
+2000 files font collection with two errors only.
|
|
|
|
| |
Now this code is getting really ugly!
|
| |
|