diff options
author | Karl Berry <karl@freefriends.org> | 2017-06-26 21:21:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-06-26 21:21:33 +0000 |
commit | 605eda23ba6a6c7cfe3ff351ef665e02befa9403 (patch) | |
tree | a119052b46d738e37d22df79b0da4e74b58b39a1 /Master/texmf-dist/doc/fonts/xcharter | |
parent | f844520b7ca021b1d9c45650a3713bacd1d68f22 (diff) |
xcharter (26jun17)
git-svn-id: svn://tug.org/texlive/trunk@44702 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/fonts/xcharter')
-rw-r--r-- | Master/texmf-dist/doc/fonts/xcharter/README | 13 | ||||
-rw-r--r-- | Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.pdf | bin | 161039 -> 234591 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.tex | 83 |
3 files changed, 83 insertions, 13 deletions
diff --git a/Master/texmf-dist/doc/fonts/xcharter/README b/Master/texmf-dist/doc/fonts/xcharter/README index 1cc1e3e42a0..2b2a7625582 100644 --- a/Master/texmf-dist/doc/fonts/xcharter/README +++ b/Master/texmf-dist/doc/fonts/xcharter/README @@ -1,6 +1,6 @@ XCharter Fonts Michael Sharpe - 2017-03-11 + 2017-06-25 This package is an extension of Bitstream Charter, whose original license is reproduced below, as required under the terms of that license. The extension provides small caps, oldstyle figures and superior figures in all four styles, accompanied by LaTeX font support files. The font files themselves are in otf and pfb formats. The fonts are licensed as Free fonts under the same terms as the original from Bitstream. All other support files are subject to the LaTeX Project Public License. See http://www.ctan.org/license/lppl1.3 @@ -19,10 +19,17 @@ Original Bitstream Free font license: BITSTREAM CHARTER is a registered trademark of Bitstream Inc. -The font modifications are Copyright (c) 2013--2017, Michael Sharpe. +The font modifications are Copyright (c) 2009--2012, Andrey Panov; Copyright (c) 2013--2017, Michael Sharpe. -Current version: 1.08 2017-03-11 +Current version: 1.09 2017-06-25 + +Changes in version 1.09 +1. Added Cyrillic and some figure styles from Andrey Panov's Khartiya, and created LaTeX support files for OT2 and T2A encodings. +2. Created slanted versions of the fonts and modified the fd files accordingly. +3. Added figure styles numerators, denominators, inferiors. +4. Added scosf option to specify use of oldstyle figure in Small Caps. +5. Added \textfrac macro for fractions. Changes in version 1.08 Modified the sty file so that XCharter text figure styles are selected always in the \AtEndPreamble hook. (Formerly, using babel would prevent this.) diff --git a/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.pdf b/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.pdf Binary files differindex 0f45d9620c0..2d8faa34851 100644 --- a/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.pdf +++ b/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.pdf diff --git a/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.tex b/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.tex index a17d64567bf..879ffb6654a 100644 --- a/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.tex +++ b/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.tex @@ -2,17 +2,20 @@ \documentclass[11pt]{article} \usepackage[margin=1in]{geometry} \usepackage[parfill]{parskip} -%\pdfmapfile{=XCharter.map} +\pdfmapfile{=XCharter.map} \usepackage[scaled=1.03,varqu,varl]{inconsolata} \usepackage[type1]{cabin} \usepackage[scaled=.98,osfI]{XCharter} -\usepackage[T1]{fontenc} +\usepackage[OT2,T2A,T1]{fontenc} \linespread{1.04} \usepackage[charter,vvarbb,scaled=1.07]{newtxmath} \usepackage[cal=boondoxo]{mathalfa} \font\osfIfnt=XCharter-Roman-tosf-t1 at 11pt \font\osffnt=XCharter1-Roman-tosf-t1 at 11pt - +\usepackage{fonttable} +\usepackage{url} +\newcommand\cyrtext{\fontfamily{XCharter-TLF}\fontencoding{OT2}\selectfont} % declaration +\DeclareTextFontCommand{\textcyr}{\cyrtext} %macro with argument %\usepackage[cal=rsfso]{mathalfa} %\usepackage{bm}% load after all math to give access to bold math \title{The XCharter Font Package} @@ -23,9 +26,11 @@ \section{Package Features} -The XCharter fonts are extensions of the Bitstream Charter fonts, adding oldstyle figures (proportionally spaced only), superior figures and small caps in all styles. The original Charter fonts were created by famed font designer Matthew Carter in the late 1980's to enhance legibility of the output from printers of that era (laser, dot matrix, thermal and inkjet) with resolutions that would now be considered low---not far from modern screen resolutions. Their low contrasts, high x-heights and use of piecewise linear outlines where possible may make them interesting again as fonts that will render well on small devices and perhaps projected slides. (It's worth noting that the same designer provided Georgia for Microsoft. It is widely considered to be one of the clearest serifed fonts for viewing on screen, and bears a number of similarities to Charter, though the latter is heavier.) +The \emph{XCharter} fonts are extensions of the Bitstream Charter fonts, adding oldstyle figures (proportionally spaced only), superior figures and small caps in all styles. The original Charter fonts were created by famed font designer Matthew Carter in the late 1980's to enhance legibility of the output from printers of that era (laser, dot matrix, thermal and inkjet) with resolutions that would now be considered low---not far from modern screen resolutions. Their low contrasts, high x-heights and use of piecewise linear outlines where possible may make them interesting again as fonts that will render well on small devices and perhaps projected slides. (It's worth noting that the same designer provided Georgia for Microsoft. It is widely considered to be one of the clearest serifed fonts for viewing on screen, and bears a number of similarities to Charter, though the latter is heavier.) + +As of version 1.09 (2017-06-25) there is a new collection of Cyrillic glyphs in \emph{XCharter}, copied from Andrey Panov's \emph{Khartiya}, an extension of the free Charter fonts, with small caps included. Some new figure styles were also copied from \emph{Khartiya}---inferiors, numerators and denominators. Along with these additions, there are now slanted versions for those who wish to have both slanted and italic text available to meet distinct semantic purposes. Note that figures and uppercase slanted and italic are almost identical (except for slanted \textsl{Q} and italic \textit{Q}) but lower-case forms are distinct. -Support files are provided for T$1$, TS$1$ and LY$1$ encodings. The package has a number of options: +Support files are provided for T$1$, TS$1$, LY$1$, T$2$A and OT$2$ encodings, the latter being to support the Cyrillic component of \emph{XCharter}. The package has a number of options: \begin{itemize} \item {\tt scaled=.98}, for example, scales all text to 98\% of specified size; @@ -33,6 +38,7 @@ Support files are provided for T$1$, TS$1$ and LY$1$ encodings. The package has \item {\tt oldstyle} (or {\tt osf}) sets the figure style in text mode to oldstyle (\textosf{0123456789}) with numeral one like a shortened $1$, but math mode will always use lining figures; \item {\tt oldstyleI} (or {\tt osfI}) sets the figure style in text mode to oldstyle (\textosfI{0123456789}) with numeral one like a shortened I, but math mode will always use lining figures; \item {\tt sups} sets the style for superscript figures (eg, footnote markers) to XCharter's superior figures rather than using the default text inserts in mathematical superscripts. +\item {\tt scosf} makes oldstyle figures the default in small cap text, no matter what the global figure setting may be. \end{itemize} @@ -42,10 +48,14 @@ Support files are provided for T$1$, TS$1$ and LY$1$ encodings. The package has \verb|\useosf| (usable only in the preamble) may be used for changing the text figure style to {\tt osf} though math mode will use lining figures. \item \verb|\useosfI| (usable only in the preamble) may be used for changing the text figure style to {\tt osfI} though math mode will use lining figures. \item \verb|\textsu| prints its argument in superior figures, eg \verb|\textsu{12}| results in \textsu{12}. The effect is the same with \verb|{\sustyle 12}|. +\item \verb|\textin| prints its argument in inferior figures, eg \verb|\textin{12}| results in \textin{12}. The effect is the same with \verb|{\instyle 12}|. \item \verb|\textlf| prints its argument in lining figures, eg \verb|\textlf{12}| results in \textlf{12}. The effect is the same with \verb|{\lfstyle 12}|. \item \verb|{\osfstyle 23}| prints \textosf{23} using whatever oldstyle option is in force. -\item \verb|\textosf| prints its argument in oldstyle figures using, in effect, the {\tt osf} option---eg \verb|\textosf{12}| results in \textosf{12}. -\item \verb|\textosfI| prints its argument in oldstyle figures using, in effect, the {\tt osfI} option---eg \verb|\textosfI{12}| results in \textosfI{12}. \end{itemize} +\item \verb|\textosf| prints its argument in oldstyle figures using, in effect, the {\tt osf} option---e.g., \verb|\textosf{12}| results in \textosf{12}. +\item \verb|\textosfI| prints its argument in oldstyle figures using, in effect, the {\tt osfI} option---e.g., \verb|\textosfI{12}| results in \textosfI{12}. +\item Numerators and denominators are normally used only for constructing fractions, but may if needed be called using \verb|\textnu| and \verb|\textde|. They are about 7\% smaller than superiors and inferiors. The \verb|\textfrac| macro allows you to write, e.g., \verb|\textfrac{31}{32}| to get \textfrac{31}{32}. + +\end{itemize} Three math packages seem to provide reasonable companions for \textsf{XCharter}. The first example uses Charter italics as math italics, but doesn't provide arbitrary scaling and doesn't sufficiently distinguish math italic v from mathematical Greek \verb|\nu|. Moreover, it is not easy to redefine \verb|\mathcal| to get a better math calligraphic alphabet---eg, the {\tt mathalfa} package fails. The second uses \textsf{libertine} italics and Greek in math mode, which is a good match to Charter in style and weight after scaling up, is arbitrarily scalable, has distinct math italic v and mathematical Greek \verb|\nu|, and is completely compatible with {\tt mathalfa}. The third is a new revision of {\tt newtxmath} with option {\tt charter} (or, equivalently, {\tt xcharter}), which substitutes Charter italics as math italics and uses a back-slanted version of its slanted Greek symbols. This version is scalable and has a math italic v (plus a matching w) distinct from \verb|\nu|. @@ -61,7 +71,7 @@ Three math packages seem to provide reasonable companions for \textsf{XCharter}. \usepackage[scaled=.98,sups,osf]{XCharter}% lining figures in math, osf in text \usepackage[scaled=1.04,varqu,varl]{inconsolata}% inconsolata typewriter \usepackage[type1]{cabin}% sans serif -\usepackage[libertine,bigdelims,vvarbb,scaled=1.07]{newtxmath} +\usepackage[libertine,vvarbb,scaled=1.07]{newtxmath} \usepackage[cal=boondoxo]{mathalfa} \linespread{1.04} \end{verbatim} @@ -71,7 +81,7 @@ Three math packages seem to provide reasonable companions for \textsf{XCharter}. \usepackage[scaled=.98,sups,osf]{XCharter}% lining figures in math, osf in text \usepackage[scaled=1.04,varqu,varl]{inconsolata}% inconsolata typewriter \usepackage[type1]{cabin}% sans serif -\usepackage[charter,bigdelims,vvarbb,scaled=1.07]{newtxmath} +\usepackage[charter,vvarbb,scaled=1.07]{newtxmath} \usepackage[cal=boondoxo]{mathalfa} \linespread{1.04} \end{verbatim} @@ -108,6 +118,59 @@ and variance $1$ on a probability space $(\Omega,\mathcal{F},\Pr)$. Then} \mathcal{C}(\mathbb{R})$.}\] \section{Text effects under \texttt{fontaxes}} -This package loads the {\tt fontaxes} package in order to access italic small caps. You should pay attention to the fact that {\tt fontaxes} modifies the behavior of some basic \LaTeX\ text macros such as \verb|\textsc| and \verb|\textup|. Under normal \LaTeX, some text effects are combined, so that, for example, \verb|\textbf{\textit{a}}| produces bold italic {\tt a}, while other effects are not, eg, \verb|\textsc{\textup{a}}| has the same effect as \verb|\textup{a}|, producing the letter {\tt a} in upright, not small cap, style. With {\tt fontaxes}, \verb|\textsc{\textup{a}}| produces instead upright small cap {\tt a}. It offers a macro \verb|\textulc| that undoes small caps, so that, eg, \verb|\textsc{\textulc{a}}| produces {\tt a} in non-small cap mode, with whatever other style choices were in force, such as bold or italics. +This package loads the {\tt fontaxes} package in order to access italic and slanted small caps. You should pay attention to the fact that {\tt fontaxes} modifies the behavior of some basic \LaTeX\ text macros such as \verb|\textsc| and \verb|\textup|. Under normal \LaTeX, some text effects are combined, so that, for example, \verb|\textbf{\textit{a}}| produces bold italic {\tt a}, while other effects are not, e.g., \verb|\textsc{\textup{a}}| has the same effect as \verb|\textup{a}|, producing the letter {\tt a} in upright, not small cap, style. With {\tt fontaxes}, \verb|\textsc{\textup{a}}| produces instead upright small cap {\tt a}. It offers a macro \verb|\textulc| that undoes small caps, so that, eg, \verb|\textsc{\textulc{a}}| produces {\tt a} in non-small cap mode, with whatever other style choices were in force, such as bold or italics. + +\section{Usage with fontspec} +Because the package supplies a file named {\tt XCharter.fontspec} whose contents list the {\tt otf} files that correspond to each of Regular, Bold, Italic, BoldItalic, Slanted and BoldSlanted, you may load XCharter with just +\begin{verbatim} +\usepackage{fontspec} +\setmainfont{XCharter} +\end{verbatim} +With unicode-encoded text, you will, in particular, have complete access to the newly added Cyrillic glyphs. +\section{Using Cyrillic with pdflatex} +The OT$2$ encoding, now considered as obsolete because it is 7-bit, is nonetheless useful to scholars who wish to write short segments using a Cyrillic script from a Western keyboard. There are two means of doing this, one using control sequences for the characters (e.g., \verb|\CYRA| for Cyrillic A) and the other using ligatures to access the characters. Tables setting out the substitutions available may be consulted at \url{http://herbert.the-little-red-haired-girl.org/dvi/pdf/cyrillic.pdf}. + +Note that, while the OT$2$ encoded font is complete, there are many gaps in the T$2$A encoded version, so that only Modern Russian and Ukrainian are fully covered, along with a number of characters from Old Russian and other Slavic languages. + +%\fonttable{XCharter-Roman-tfl-ot2.tfm} +%{\usefont{OT2}{XCharter-TLF}{m}{n} \char"41} +\textsc{XCharter-Roman-tlf-ot2.tfm}:\\ +\fonttable{XCharter-Roman-tlf-ot2} + +\textsc{Example OT$2$ Preamble:} + +\begin{verbatim} +\documentclass{article} +\usepackage[OT2,T1]{fontenc} % loads ot2enc.def +\newcommand\cyrtext{% +\fontfamily{XCharter-TLF}\fontencoding{OT2}\selectfont} % declaration +\DeclareTextFontCommand{\textcyr}{\cyrtext} %macro with argument +\end{verbatim} +The Russian part of the following sentence is entered as \verb|\textcyr{a e1to --- po-russki}|. + +This is text in English, then Russian: +\textcyr{a e1to --- po-russki}. + +\textsc{Using T$2$A with T$1$:} + +Here's an example of using {\tt XCharter} text and math, set up to allow the use of Russian with English as the main language. +\begin{verbatim} +\usepackage[OT2,T2A,T1]{fontenc} % spell out all text encodings to be used +\usepackage[utf8]{inputenc} % +\usepackage{substitutefont} % so we can use fonts other than those specified in babel +\usepackage[russian,english]{babel} +\usepackage{XCharter} % +\usepackage[charter,vvarbb,scaled=1.07]{newtxmath} +\useosf % use oldstyle figures except in math +\substitutefont{T2A}{\rmdefault}{XCharter} % use XCharter to render Russian +%\substitutefont{OT2}{\rmdefault}{XCharter} % poor man's version +\end{verbatim} +Any {\tt utf8}-encoded text typed outside of a \verb|\foreignlanguage{}{}| block will be rendered as T$1$-encoded {\tt XCharter}, while that within \verb|\foreignlanguage{russian}{}| will render as T$2$A-encoded Cyrillic. + +\newpage +\textsc{XCharter-Roman-tlf-t2a.tfm}:\\ +\fonttable{XCharter-Roman-tlf-t2a.tfm} + +\textsc{Note:} Currently, the \LaTeX\ support files for T$2$A encoded \emph{XCharter} cover only the figure styles {\tt lining}, {\tt oldstyle} and {\tt superiors}. \end{document}
\ No newline at end of file |