summaryrefslogtreecommitdiff
path: root/fonts/xcharter/tex/XCharter.sty
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/xcharter/tex/XCharter.sty')
-rw-r--r--fonts/xcharter/tex/XCharter.sty22
1 files changed, 19 insertions, 3 deletions
diff --git a/fonts/xcharter/tex/XCharter.sty b/fonts/xcharter/tex/XCharter.sty
index 0345a4f8a2..72240550fc 100644
--- a/fonts/xcharter/tex/XCharter.sty
+++ b/fonts/xcharter/tex/XCharter.sty
@@ -3,8 +3,8 @@
%%
\NeedsTeXFormat{LaTeX2e}
-\def\fileversion{1.208}
-\def\filedate{2020/09/20}
+\def\fileversion{1.213}
+\def\filedate{2020/11/25}
\ProvidesPackage{XCharter}[\filedate\space v\fileversion]
@@ -132,8 +132,9 @@
\@onlypreamble\useosf
\@onlypreamble\useosfI
-\newcommand{\textosfI}[1]{\oldstylenums{#1}}% to get XCharter osfI
+%\newcommand{\textosfI}[1]{\oldstylenums{#1}}% to get XCharter osfI
\newcommand{\textosf}[1]{{\fontencoding{T1}\fontfamily{XCharterx}\selectfont #1}}% to get XCharter osf
+\newcommand{\textosfI}[1]{{\fontencoding{T1}\fontfamily{XChartery}\selectfont #1}}% to get XCharter osfI
\renewcommand*{\bfdefault}{b}
\renewcommand*{\scdefault}{sc}% for better compatibility with mathdesign
@@ -154,6 +155,21 @@
\DeclareFontShape{T1}{XCharterx}{b}{it}{
<-> s*[\XCharter@scale] XCharter1-BoldItalic-tosf-t1
}{}
+% osfy corresponds to small I rather than small 1
+\DeclareFontFamily{T1}{XChartery}{}
+
+\DeclareFontShape{T1}{XChartery}{m}{n}{
+ <-> s*[\XCharter@scale] XCharter-Roman-tosf-t1
+}{}
+\DeclareFontShape{T1}{XChartery}{m}{it}{
+ <-> s*[\XCharter@scale] XCharter-Italic-tosf-t1
+}{}
+\DeclareFontShape{T1}{XChartery}{b}{n}{
+ <-> s*[\XCharter@scale] XCharter-Bold-tosf-t1
+}{}
+\DeclareFontShape{T1}{XChartery}{b}{it}{
+ <-> s*[\XCharter@scale] XCharter-BoldItalic-tosf-t1
+}{}
\renewcommand*{\rmdefault}{XCharter-TLF}