Type 1 fonts #104
-
Hi Is there anyway to use Type 1 fonts? The documentation doesn't mention Type 1 fonts at all (nor do the TUGboat articles), so I can't quite tell whether Type 1 fonts are supported or not. The documentation uses the term "Unicode fonts". Am I to understand this means OpenType and TrueType fonts only? I don't know a whole lot about font encodings, so it would be great if someone could clarify. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
The \font primitive supports tfm files and LuaTeX supports pdftex.map, \pdfmapline etc. If you prepare your font files (tfm, enc, mapline, pfb, maybe vf) and install them to appropriate places (like when pdftex is used), then you can load such font by \font and use it. Moreover, you have to solve a re-encoding from Unicode to the font encoding of the font: the example is in OpTeX trick http://petr.olsak.net/optex/optex-tricks.html#nonunicode . I strongly recommend not to bother with these old font technology which needs many files, complicated installation and they don't support Unicode directly. |
Beta Was this translation helpful? Give feedback.
-
The You can do something more simple. If you want to use these fonts only in a single document, use the |
Beta Was this translation helpful? Give feedback.
-
I observed that the following works:
Now, this isn't documented behavior. @olsak, is this safe to use? That is, can the user assume this works? |
Beta Was this translation helpful? Give feedback.
-
It is documented: section 2.12: Using \font primitive. To your particular question. I don't know what is the |
Beta Was this translation helpful? Give feedback.
-
OK, I'll add a short note about |
Beta Was this translation helpful? Give feedback.
The
\caps
font modifier (declared in font family files) is based on OpenType font feature. If we want to implement something similar with Type1 fonts then we have to create a macro which selects different tfm file where Caps is present. It is not supported by default, unfortunately. And if we want to mix OpenType fonts and Type1 in single family and create font modifiers for such a family, then this is more complicated task.You can do something more simple. If you want to use these fonts only in a single document, use the
\font
primitive with directly declared sizes for all Type1 fonts you need and select these fonts by font selectors declared by the\font
. Or, you can use\sfont
instead\…