[PDF] OpenType old-style figures: 0123456789 AAT old-style figures





Previous PDF Next PDF



The fontspec package Font selection for X E LATEX and LuaLATEX

15 jan. 2022 The fontspec package allows users of either X E TEX or LuaTEX to load OpenType fonts in a. LATEX document. No font installation is necessary ...



Font loading in LATEX using the fontspec package: Recent updates

Document portability. If you are loading a font by name it has to be installed somehow on that local computer. Well



Progress of fontspec and unicode-math

22 juil. 2018 fontspec – selecting fonts. Font loading. The interface for font ... Install prerelease versions of fontspec and latex3 and re-check.



LATEX font packages

3 jan. 2012 ages then load fontspec



OpenType old-style figures: 0123456789 AAT old-style figures

a unified and consistent interface to fonts and their features in both formats and offer a few other niceties along the way. 3 Font installation. To install a 



LATEX support for Lato Version 3.3

24 jui. 2019 1Use the updmap-sys command instead for a global installation. ... OpenType fonts with X ELATEX and LuaLATEX (the fontspec package will be.



LATEX Support for Linux Libertine and Biolinum Fonts

1 oct. 2018 <b></b> Update the <b>font</b>-map files by enabling the Map file libertine.map. 3 Basic Usage. For most purposes simply <b>add</b>. \usepackage{libertine} to the&nbsp;...



LATEX Support for Linux Libertine and Biolinum Fonts

1 oct. 2018 <b></b> Update the <b>font</b>-map files by enabling the Map file libertine.map. 3 Basic Usage. For most purposes simply <b>add</b>. \usepackage{libertine} to the&nbsp;...



The LuaTeX-ja package

2.1 Installation . A word in a sens-serif font without underline (like fontspec) means a package or a class of LaTEX. ... ?Manual installation.

TUGboat, Volume 26 (2005), No. 3 215

Fonts

Advanced font features with XET

EX -thefontspecpackage?

Will Robertson

Abstract

This paper describes thefontspecpackage for the

XET

EX-LATEX format. This package provides a high

level interface for font selection and conguration of

OpenType and other fonts.

1 Introduction

XET

EXis an extended TEX program written by Jon-

athan Kew, and has been introduced recently in this journal [4]. It is currently available only on Apple's

MacOSX, but there is considerable interest (and

much work to be done!) in making it a cross-platform application. The main advantages it holds over its contemporaries are support for Unicode input and di- rect access to fonts installed in the operating system. No additional support les are necessary in order to install such fonts, which are accessed via an extended \fontprimitive. This primitive also provides access to rich font features available in either the Open-

Type format, or the `Apple Advanced Typography'

(AAT) format.1A typical example, in plainXET EX, of choosing a font with old-style gures in these two formats is shown in example1.

Thefontspecpackage is an implementation of

a high level interface for L

ATEX users ofXET

EXto access feature-rich fonts in the framework of the familiarNFSS. Furthermore, it obviates the need for custom-written font denition les required for font installation.

This paper will introduce thefontspecpackage

with some side commentary on the advanced font for- mats it supports. The rst half of the paper will cover the user interface, covering font installation, font se- lection, and fontfeatureselection. The second half discusses the implementation details, shortcomings, and future of the package.? Version 1.9 of the package was under construction while this paper was nalised; some additions may yet make it into the nal version, in which case I apologise in advance for the incomplete information here. The package documentation will always be up to date, of course.

1TheAATformat may be considered to be approximately

equivalent to a combination of the Multiple Master and Open-

Type formats.Example 1:Plain XET

EX OpenType andAATfont

selection with old-style figures.\font\fonta="Adobe Garamond Pro:+onum" at 12pt \fonta OpenType old-style figures: 0123456789 \font\fontb="Apple Chancery:

Number Style=Old Styles" at 12pt

\fontb AAT old-style figures: 0123456789OpenTypeold-stylefigures:dddddddd)* !ATold-style figures:01234567892 Motivation

WithXET

EX, users have easy access to a multitude

of typefaces in Plain T

EX. But writing the font def-

inition les for L

ATEX was cumbersome and proved

a fair obstacle for day-to-day use. I started working on a solution, which was originally simply to cre- ate the.fdles necessary to access every MacOSX font in L

ATEX, but I quickly tired of the tedium,

disenchanted with this non-general solution to the problem. Furthermore, the scope of font features pro- vided by feature-rich fonts quickly demonstrated the NFSS2insucient for the task of incorporating every permutation of font features a user might desire.

Secondly,AATfont features are accessed by

referring to a specic string dened on a per-font basis, with consistency between fonts kept between `feature codes' rather than the value of the string.

For example, example1uses the strings `Number

Style' and `Old Styles' to select lowercase numbers in

Apple Chancery, but for Hoe

er Text one would write `Number Case=Lowercase numbers'. Note that such a system works well in a graphical program in which font features are selected interactively from a list; each feature may be described exactly as the font designer would wish (and this is indeed an advantage for more esoteric features). Unfortunately, for a batch program like XET

EX, this flexibility is a burden.

Finally, after version 0.8,XET

EXbegan using the

ICUrenderer3to support OpenType font features in

addition to the MacOSX-native features it supported from the beginning. Now the poor users had to cope with not only a dierent system for applying font features, but also OpenType's cryptic abbreviations for them. At this time,fontspecwas able to provide2 NFSS, the `new font selection scheme' for LATEX, isn't actually that new. For readers unfamiliar with its concepts, the documentation filefntguidereveals all [12].

3International Components for Unicode,http://icu.

sourceforge.net

216 TUGboat, Volume 26 (2005), No. 3

a unied and consistent interface to fonts and their features in both formats, and oer a few other niceties along the way.

3 Font installation

To install a font in MacOSX, the font le must

be placed in one of the computer'sFontsfolders (user, system, or network). Once a font is installed in

MacOSXit is immediately available toXET

EX. No

additional font support les of any kind are required for it to be loaded by a\fontcommand. (A LATEX user would still need.fdles for loading it with classicalNFSStechniques.) Ease of font access is one ofXET

EX's attractions, but no manipulation of

the font properties can occur between the stages of obtaining the font and actually using it.

Compare this to the method T

EX and its siblings

uses, in which sub-optimal glyphs or kerning in the font may be rectied with customised font metrics and virtual fonts. InXET

EX, it is much simpler for

auserto install a new font, but it is less exible if greater output quality is desired than the font alone gives and the user cannot, or may not (due to license restrictions), edit the font file itself.

It has always been a good idea, however, to use

a suitably high-quality font from the beginning in order to avoid such hassles.

4 Font selection

One of the trickier topics a new user to L

ATEX faces

is font selection, although progress has been made with the PostScriptNFSSbundle [11], and other freely available fonts, that provide simple4packages to select them.XET

EXand thefontspecpackage make

things similarly easy by referring to a font with its display name, rather than the cryptic `Karl Berry' abbreviation, unnecessary in many cases these days.

On an individual basis,\fontspecselects font

families:\fontspec[font features]{font name}

This command loads the specied typeface and de-

nes anNFSSfamily as appropriate with bold, italic, and small caps shapes (if available) for access with the familiar font-shape changing commands such as \itshape,\textsc,etc.5An example of selecting the `Hoe er Text' family with these methods is shown in example2. 4 Indeed, too simple in some cases. Thehelvetpackage allows a scaling factor to load the font at any relative size, but almost all other font packages skip this sometimes-vital ingredient.

5Code inspired by Philipp Lehman'sThe Font Installation

Guide[6] allows the combination of both italic and small caps shapes.Example 2:NFSSfamily selection\fontspec{Hoefler Text}

This is an example typeset in Hoefler Text.

\textit{Here is italic.} \textbf{And now bold.} {\bfseries\itshape Bold italic, of course.} \scshape Small caps, if available. \itshape And italic small caps.

\bfseries Even bold italic small caps!This is an example typeset in Hoefler Text.Here isitalic.And now bold.Bold italic,of course.Sdddd dddd,dd d)dddd*d+.A!" #$%&#' ()%&& '%*(.E!"# $%&' ()*&(+ ,-*&& +*.,!Example 3:Choosing the default font families.\setromanfont{Baskerville}

\setsansfont[Scale=MatchLowercase]{Skia}

The \textsf{fontspec} package defines

the \verb|\fontspec| command.Thefontspecpackage defines the\fontspeccommand.More usefully, the default document fonts (ro-

man, sans serif, and typewriter), are chosen with the following commands, which have the same inter- face as\fontspecitself. They are\setromanfont, \setsansfont, and\setmonofont, and provide a more intuitive interface than such methods as\renewcommand\rmdefault{family}. Related commands are also available for specifying the text fonts for use in maths environments (i.e., \mathrmand others).

The use of the default-font commands in exam-

ple3also demonstrates the feature for automatic font scaling, which in this case keeps the lowercase letter heights consistent. Further explanation of the

Scalefeature occurs in section5.1.

Thefontspecpackage attempts to identify the

accompanying small caps, bold, and italic faces for a selected font, but in the case that it fails or that more than one is available for use, they may be selected explicitly, with individual font features if desired. `Old-fashioned' 8-bit fonts with separate small caps may be dened as a complete family in this way, as shown in example4, which also demonstrates how a Multiple Master font instance can be conveniently defined for the bold series.

Finally, commands may be dened for eciently

switching between fonts:

TUGboat, Volume 26 (2005), No. 3 217

Example 4:Choosing accompanying fonts.\fontspec[SmallCapsFont = {Minion MM Small Caps & Oldstyle Figures},

BoldFont = {Minion MM Roman},

BoldFeatures = {Weight = 1.4},

]{Minion MM Roman}

Minion Roman 123 \\ \textsc{Minion SC 456} \\

\bfseries

Minion Bold 123 \\ \textsc{Minion Bold SC 456}Minion Roman 123Minion SC456Minion Bold 123Minion Bold SC456\newfontinstance\fontcs[features]{font name}

This denes the\fontcscontrol sequence (say) for

selecting the particular font instance dened. It is more efficient than writing\def\fontcs{\fontspec[features]{font name}} because the feature processing only needs to be per- formed in the original denition, as opposed to every time the macro is expanded in the latter case.

5 Font feature selection

The package documentation covers all of the built-in featuresfontspecsupports, with many examples; an interesting subset of these is presented here.

As previously mentioned, font features are de-

ned in the optional argument to the various font commands. Inspired by the organisation of theAAT font features, these are separated into groups and usekeyvalcomma-separated values to impose some sort of structure onto the large number of possible feature choices.

Two very important commands are associated

with choosing font features:\defaultfontfeatures{font features} \addfontfeatures{font features}

The rst,\defaultfontfeatures, is used to dene

features that will be applied implicitly toallsubse- quent font choices; for example, to request that allquotesdbs_dbs19.pdfusesText_25
[PDF] fontspec ligatures

[PDF] fontspec pdflatex error

[PDF] fontspec set font size

[PDF] fontspec example.tex

[PDF] food delivery customer demographics

[PDF] food delivery industry trends

[PDF] food delivery journal pdf

[PDF] food delivery market research india

[PDF] food delivery service pdf

[PDF] food near me open now delivery

[PDF] food places in paris texas

[PDF] food testing lab project report

[PDF] food trucks in paris texas

[PDF] fopen exclusive mode

[PDF] fopen vulnerability c