New answers tagged

2

The fontspec package easily takes care of most of your needs. Using \addfontfeatures should rarely be needed. It's true that Latin Modern Roman doesn't honor the +scmp feature, but you can easily define the small caps font. Don't use LM Roman 12, but the generic family name. \documentclass{article} \usepackage{fontspec} % required with LuaLaTeX ...


2

EDIT: Based on the accepted answer above, the following answer, and comments, I have been able to solve my problem in detail. Thanks, all! Here is a MWE showing how it works. % !TeX program = LuaLaTeX % !TEX encoding = UTF-8 \documentclass{article} \usepackage{fontspec} % required with LuaLaTeX \setmainfont[ Ligatures=TeX, Numbers=Proportional, % but ...


7

Here’s an updated version of the summary I made for myself when I began using fontspec. | tag | fontspec option | comments | |------+--------------------------------------+-----------------------------------------------------| | abvm | Diacritics=[No]AboveBase | default ...


1

A \addfontfeature command will overwrite the standard font colours and other features within the specified stretch, e.g. {\addfontfeature{BoldItalicFeatures={Colour=red}}\bfseries\itshape these words are red} But this might not be too practical. A \newcommand might work: \newcommand{\mycolouredtext}[2]{{\addfontfeature{% ItalicFeatures={Colour=#1},% ...


6

The following Python script for FontForge creates #!/usr/bin/env python2 import fontforge import os.path font_files = [ 'Vollkorn-Bold.otf', 'Vollkorn-BoldItalic.otf', 'Vollkorn-Italic.otf', 'Vollkorn-Regular.otf', ] def main(): for font_file_name in font_files: make_new_font(font_file_name) def ...


3

Since I do not have the font Adobe Garamond Pro I have used the font EBGaramond12, available in TeX Live. This font provides an alternate form one.01 for glyph one: \documentclass{article} \usepackage{fontspec} \usepackage{filecontents} \begin{filecontents*}{ebgaramond12.fea} languagesystem DFLT dflt; languagesystem latn dflt; feature calt { sub one by ...


2

According to The OpenType Cookbook, section Rules, subsection "Common Gotcha", the second rule also needs the apostrophe, when the lookup contains contextual tokens anywhere. But even with apostrophe it is not working in LuaTeX 0.80. It might be a bug. A second bug revealed the use of ranges in @greekletters. Then I get numbers 15 right before the period. ...


4

The Junicode Bold font shape appears to contain just 3 glyphs in the "Greek and Coptic" group and 0 glyphs in the "Greek Extended" group. In contrast, the Junicode Upright (non-bold) font shape contains 88 and 233 glyphs in the "Greek and Coptic" and "Greek Extended" groups, respectively. Clearly, it's not fruitful to apply the feature file approach to ...


11

This is possible with a contextual feature. The class @greekletter defines all Greek letters (the example still needs to be completed), then a beta after a Greek letter is replaced by its slim form: \documentclass{article} \usepackage{fontspec,filecontents} \begin{filecontents*}{junicode.fea} languagesystem DFLT dflt; languagesystem latn dflt; # The list ...



Top 50 recent answers are included