Implement support for classico font package (#13124)

This is only an alternative to the classico font we already support
(uop), hence no file format change.
This commit is contained in:
Juergen Spitzmueller 2024-11-13 09:04:56 +01:00
parent 833c372931
commit 360bb1fa7c
4 changed files with 31 additions and 3 deletions

View File

@ -484,6 +484,7 @@
\TestPackage{cantarell} \TestPackage{cantarell}
\TestPackage{ccfonts} \TestPackage{ccfonts}
\TestPackage{Chivo} \TestPackage{Chivo}
\TestPackage{classico}
\TestFont[ccr10]{concrete} % required by ccfonts \TestFont[ccr10]{concrete} % required by ccfonts
\TestFont[eorm10]{ecc} % required by ccfonts \TestFont[eorm10]{ecc} % required by ccfonts
\TestPackage[ot1ccr.fd]{concmath} % required by ccfonts \TestPackage[ot1ccr.fd]{concmath} % required by ccfonts
@ -544,7 +545,7 @@
\TestPackage{tgschola} \TestPackage{tgschola}
\TestPackage{tgtermes} \TestPackage{tgtermes}
\TestFont[ugmr8r]{ugm} \TestFont[ugmr8r]{ugm}
\TestFont[uopr8r]{urwclassico} \TestFont[xuopr8r]{urwclassico}
\TestPackage{tipa} \TestPackage{tipa}
\TestPackage{tipx} \TestPackage{tipx}
\TestPackage{tone} \TestPackage{tone}

View File

@ -2443,6 +2443,24 @@ Notes:
Live the font needs to be installed via the 'getnonfreefonts-sys' utility. Live the font needs to be installed via the 'getnonfreefonts-sys' utility.
\end_layout \end_layout
\begin_deeper
\begin_layout Standard
Alternatively,
you can also use the
\family sans
classico
\family default
package (installed:
\begin_inset Info
type "package"
arg "classico"
\end_inset
).
\end_layout
\end_deeper
\begin_layout Subsection \begin_layout Subsection
URW Garamond URW Garamond
\end_layout \end_layout

View File

@ -1064,6 +1064,13 @@ Font uop
Family sf Family sf
SwitchDefault 1 SwitchDefault 1
Requires urwclassico Requires urwclassico
AltFonts classico
EndFont
AltFont classico
GuiName "URW Classico (Optima)"
Family sf
Package classico
EndFont EndFont
# #

View File

@ -1345,9 +1345,11 @@ void Preamble::handle_package(Parser &p, string const & name,
options.clear(); options.clear();
} }
if (name == "PTSans") { if (name == "PTSans")
h_font_sans[0] = "PTSans-TLF"; h_font_sans[0] = "PTSans-TLF";
}
if (name == "classico")
h_font_sans[0] = "uop";
if (name == "FiraSans") { if (name == "FiraSans") {
h_font_sans_osf = "true"; h_font_sans_osf = "true";