Skip to content
Snippets Groups Projects
Commit 2c7be728 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

Font-Experimente

parent 119ef0eb
Branches
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
}{} }{}
\RequirePackage[no-math]{fontspec} \RequirePackage[no-math]{fontspec}
\RequirePackage[mathit=sym]{unicode-math}
\ifSERIF \ifSERIF
\setmainfont{texgyrepagella}[ \setmainfont{texgyrepagella}[
...@@ -22,32 +23,43 @@ ...@@ -22,32 +23,43 @@
ItalicFont=*-italic, ItalicFont=*-italic,
BoldItalicFont=*-bolditalic] BoldItalicFont=*-bolditalic]
\else \else
\setmainfont{texgyreheros}[ \setsansfont{texgyreheros}[
Ligatures=TeX, Ligatures=TeX,
Extension=.otf, Extension=.otf,
UprightFont=*-regular, UprightFont=*-regular,
BoldFont=*-bold, BoldFont=*-bold,
ItalicFont=*-italic, ItalicFont=*-italic,
BoldItalicFont=*-bolditalic] BoldItalicFont=*-bolditalic]
\setromanfont{texgyreheros}[
Ligatures=TeX,
Extension=.otf,
UprightFont=*-regular,
BoldFont=*-bold,
ItalicFont=*-italic,
BoldItalicFont=*-bolditalic]
\renewcommand*\familydefault{\sfdefault}%
\fi \fi
\renewcommand*\familydefault{\sfdefault}%
\ifMATHSERIF \ifMATHSERIF
\RequirePackage{unicode-math}
\setmathfont{texgyrepagella-math.otf}[ \setmathfont{texgyrepagella-math.otf}[
math-style=TeX, math-style=TeX,
bold-style=TeX, bold-style=TeX,
] ]
\else \else
\iftrue \setmathfont{FiraMath-Regular.otf}[
\usepackage[usefilenames,weight=Regular]{firamath-otf} Scale=1,
\setoperatorfont\mathsf math-style=TeX,
\unimathsetup{partial=upright}% bold-style=TeX,
\RequirePackage{mathastext} Numbers={Lining,Proportional},
\else ]
\usepackage{newtxsf}% XeTeX crashed %\RequirePackage[usefilenames,weight=Regular]{firamath-otf}
\fi \setoperatorfont\mathsf
\unimathsetup{partial=upright}%
%\RequirePackage{mathastext}% nicht so gut
\setmathfont{texgyreheros-regular.otf}[range=up/{Latin,Greek,num}]
\setmathfont{texgyreheros-italic.otf}[range=it/{latin,greek}]
\setmathfont{texgyreheros-bolditalic.otf}[range=bfit/{latin,greek}]
\setmathfont{texgyreheros-bold.otf}[range=bfup/{latin,greek}]
\fi \fi
\setmonofont{AnonymousPro-Regular}[% \setmonofont{AnonymousPro-Regular}[%
......
...@@ -330,7 +330,7 @@ ...@@ -330,7 +330,7 @@
\PTBlandscapetrue \PTBlandscapetrue
\fi \fi
\RequirePackage{relsize}\renewcommand\RSpercentTolerance{0} \RequirePackage{relsize}\renewcommand\RSpercentTolerance{0}% ???
\newcommand*\scaleFontSizes[1]{% \newcommand*\scaleFontSizes[1]{%
\global\PTB@default@fsize=#1\PTB@default@fontsize@base \global\PTB@default@fsize=#1\PTB@default@fontsize@base
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment