From 3c64bea3c03513f01659e115f8e1c068039477a7 Mon Sep 17 00:00:00 2001
From: niepra01 <rolf.niepraschk@ptb.de>
Date: Fri, 30 Oct 2015 12:30:07 +0100
Subject: [PATCH] otf-Fonts jetzt per Dateinamen (ist leider sicherer)

---
 kalibrierschein/kalibrierschein.cls | 39 ++++++++++++++++++-----------
 1 file changed, 25 insertions(+), 14 deletions(-)

diff --git a/kalibrierschein/kalibrierschein.cls b/kalibrierschein/kalibrierschein.cls
index 50916aa..f2e4403 100644
--- a/kalibrierschein/kalibrierschein.cls
+++ b/kalibrierschein/kalibrierschein.cls
@@ -108,20 +108,31 @@
 
 %\RequirePackage[no-math]{fontspec}
 \RequirePackage{unicode-math}
-\setmathfont[math-style=ISO,bold-style=ISO]{Asana Math}% damit sind Einheiten kursiv
-%\setmathfont{Asana Math}
-\setmainfont[Ligatures=TeX]{TeX Gyre Heros}
-\setsansfont[Ligatures=TeX]{TeX Gyre Heros}
-\setmathfont[range=\mathup,Scale=MatchLowercase]{TeXGyreHeros-Regular}
-\setmathfont[range=\mathit,Scale=MatchLowercase]{TeXGyreHeros-Italic}
-\setmathfont[range=\mathbfup,Scale=MatchLowercase]{TeXGyreHeros-Bold}
-\setmathfont[range=\mathbfit,Scale=MatchLowercase]{TeXGyreHeros-BoldItalic}
-\setmathfont[range=\mathsfup,Scale=MatchLowercase]{TeXGyreHeros-Regular}
-\setmathfont[range=\mathsfit,Scale=MatchLowercase]{TeXGyreHeros-Italic}
-\setmathfont[range=\mathbfsfup,Scale=MatchLowercase]{TeXGyreHeros-Bold}
-\setmathfont[range=\mathbfsfit,Scale=MatchLowercase]{TeXGyreHeros-BoldItalic}
-\setmathfont[range=\mathpunct]{TeXGyreHeros-Regular}
-\setmathfont[range=\int]{Asana Math}
+\setmainfont{texgyreheros}[
+  Ligatures=TeX,
+  Extension=.otf,
+  UprightFont=*-regular,
+  BoldFont=*-bold,
+  ItalicFont=*-italic,
+  BoldItalicFont=*-bolditalic.otf]
+\setsansfont{texgyreheros}[
+  Ligatures=TeX,
+  Extension=.otf,
+  UprightFont=*-regular,
+  BoldFont=*-bold,
+  ItalicFont=*-italic,
+  BoldItalicFont=*-bolditalic.otf]
+\setmathfont{Asana-Math.otf}[math-style=ISO,bold-style=ISO]% damit sind Einheiten kursiv
+\setmathfont{texgyreheros-regular.otf}[range=\mathup,Scale=MatchLowercase]
+\setmathfont{texgyreheros-italic.otf}[range=\mathit,Scale=MatchLowercase]
+\setmathfont{texgyreheros-bold.otf}[range=\mathbfup,Scale=MatchLowercase]
+\setmathfont{texgyreheros-bolditalic.otf}[range=\mathbfit,Scale=MatchLowercase]
+\setmathfont{texgyreheros-regular.otf}[range=\mathsfup,Scale=MatchLowercase]
+\setmathfont{texgyreheros-italic.otf}[range=\mathsfit,Scale=MatchLowercase]
+\setmathfont{texgyreheros-bold.otf}[range=\mathbfsfup,Scale=MatchLowercase]
+\setmathfont{texgyreheros-bolditalic.otf}[range=\mathbfsfit,Scale=MatchLowercase]
+\setmathfont{texgyreheros-regular.otf}[range=\mathpunct]
+\setmathfont{Asana-Math.otf}[range=\int]
 % (Ulrike): )als letztes immer einen
 % richtiger Mathfont, damit diverse Werte korrekt gesetzt werden.
 % Wirklich nötig?
-- 
GitLab