| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
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?
|
| |
|
|
|
|
|
| |
Used in two places in the source, male is alias to luatextra's latex
catcodetable.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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...
|
| |
|
|
|
|
| |
Fixing a bug when mixing colored and non-colored fonts.
|
|
|
|
|
| |
We will need more fields from the specification in the future, simplify
function calling.
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| | |
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 selects XeTeX's graphite renderer. Also issue a log message for
unsupported options.
|
|
|
|
|
|
|
| |
If the font option isn't a known option, we assume it is a font style
and pass it as is, this allows for definitions like:
\font\dejavuextralight={DejaVu Sans/Extralight:+liga} at 10pt
|
| |
|
|
|
|
| |
Not used yet, though.
|
| |
|
|
|
|
|
|
| |
Now the boxes are "transparent" to the algorithm. This saves 5%
space on a uncompressed PDF, about 0.5% in a compressed one, but
may be a lot more for documents with a lot of boxes.
|
|
|
|
|
|
|
|
| |
Smaller pdf output. Some more optimizations could happen by a second
exploration, may come later.
The file doesn't work with LuaTeX 0.40 but seems ok for 0.44. Colors are
now disabled for versions <41.
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
Not relying on str:is_empty which is not in luaextra (yet?).
In pre_output_buffer, we shouldn't encounter sub_math but if
we encounter a sub_box we should explore it like we do for vlist
and hlist.
|
| |
|
|
|
|
| |
There still room for improvement.
|
|
|
|
| |
the callbacks are not registered if no font with colors is loaded, less verbose pdf output
|
| |
|
|
|
|
|
| |
Fixes bug with some fonts ("attempt to get length of local 'splt' (a nil
value)").
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We now support XeTeX's syntax, try:
\input luaotfload.sty
\font\termesr ={TeX Gyre Termes:+liga} at 10pt
\font\termesb ={TeX Gyre Termes/B:+liga} at 10pt
\font\termesi ={TeX Gyre Termes/I:+liga} at 10pt
\font\termesbi={TeX Gyre Termes/BI:+liga} at 10pt
\font\termesib={TeX Gyre Termes/IB:+liga} at 10pt
\termesr What a nice day fi fl ffi ffl ff\par
\termesb What a nice day fi fl ffi ffl ff\par
\termesi What a nice day fi fl ffi ffl ff\par
\termesbi What a nice day fi fl ffi ffl ff\par
\termesib What a nice day fi fl ffi ffl ff\par
\bye
|
| |
|
| |
|
|
|
|
|
| |
Only regular style is resolved for now, still need to pass the proper
style to the filename resolver function.
|
|
|
|
|
| |
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!
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now database looks like:
mappings = {
families = {
["familyname"] = {
["regular] = filename-regular.ttf
["bold"] = filename-bold.ttf
...
}
...
}
psnames = {
["psnameregular"] = filename-regular.ttf
["psnamebold"] = filename-bold.ttf
...
}
}
|
|
|
|
|
|
| |
If $OSFONTDIR is set, then it'll be appended to $OPENTYPEFONTS and
$TTFONTS anyway, so we are just rescanning fonts. To be replaced by
fontconfig based implementation.
|
|
|
|
|
|
| |
Instead of using (the faster) fontloader.info, we now fully open the
font to get more usable data, my be it is worth extending
fontloader.info to cover our needs?
|
| |
|
|
|
|
|
| |
Khaled, why not having luaotfload.colorize instead of local colorize
functions?
|
|
|
|
|
| |
$OSFONTDIR in not always set, so check it and the others too. Also index
only the base filename for files in texmf tree.
|