| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Now we read $OSFONTDIR variable to load system fonts, $OPENTYPEFONTS and
$TTFONTS to load fonts in texmf tree. Fontconfig support might be added
later.
|
| |
|
| |
|
|
|
|
|
|
| |
Will moves |logs.report| to |otfl-luat-dumm.lua|.
This reverts commit 4479c85beec3b201db096d9320d203a58fd210d4.
|
| |
|
|
|
|
| |
Very crude, linux only.
|
|
|
|
|
|
| |
I'm abusing versioning, version number should be increased only after
making a release (since CTAN version is 1.06, git should be 1.07), we
should tag releases too.
|
| |
|
|
|
|
| |
For easier maintenance.
|
|
|
|
|
|
|
|
| |
Looks like the internal of the code changed in the mean time that the
mere existence of a feature in the features tables will enable it, so
now we nullify it instead.
closes #4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
LaTeX expects that fontname is the tfm name, and thus use it to recall
the font, so we ought to store something that can be used the same way
here. `specification.specification' is the string used to define the
font.
Test:
\input luaotfload.sty
\font\xxx=file:lmroman10-regular.otf:+liga;+tlig\xxx
``\fontname\font'' should be: {\tt file:lmroman10-regular.otf:+liga;+tlig}
\bye
closes #3
|
|
|
|
| |
Now, we are on par with XeTeX's tex-text mapping.
|
|
|
|
| |
Now `x', ``x'', ``x,, and x's work as CM fonts.
|
| |
|
|
|
|
|
|
|
| |
Apparently, LuaTeX weren't happy by massive assignments to
tex.pdfpageresources (we were reassigning it for almost every node!).
Now the code seems to work, but it is just a big hack at best.
|
|
|
|
|
|
| |
Switch to pdfliteral default (indirect) mode which will make sure text
blocks are surrounded by BT ET (see PDFTeX manual, 7.12), which, for
some obscure reason, adobe reader needs for transparency to work.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Very ugly code, hacky like hell and crashes LuaTeX if transparency is
set for a large portion of text.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The idea is very simple, we set a special |color| field in the font
table, then we surround each glyph in that font with color |whatsit|
node (actually pdfliteral whatsit nodes).
The resulting PDF file is larger than XeTeX output (because insert
color nodes around continues glyph nodes only, even if it was
interrupted by just a |glue| or |kern| node). This can be better
optimized, but I gave up.
Also we don't handle transparency, yet.
|
|
|
|
|
| |
The new module will hold our extended features that are not supported
by luatex-fonts, currently slant and extend.
|
|
|
|
| |
Things like "slan=-.14;extend=1.5" should work now.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Though this what |luatex-fonts| documentation suggests, using |--usekpse| will
disable reading system fonts.
|
| |
|
| |
|
| |
|
|
|
|
| |
Redefine the dummy |logs.report()| as wrapper for |luatextra.module_info()|
|
| |
|
|
|
|
| |
0.40, and adding a log message for the file loading
|
| |
|