diff options
author | Karl Berry <karl@freefriends.org> | 2013-11-03 23:50:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-11-03 23:50:26 +0000 |
commit | ae8d79bea3ee120c9735424380e2983af5f3bf4f (patch) | |
tree | a6a8dfba9255534962fca9c48317925c3316a424 /Master/texmf-dist/doc/fonts | |
parent | 47e8672bf0b15bc52f7579525cafbf76f3e05cbd (diff) |
xcharter
git-svn-id: svn://tug.org/texlive/trunk@32055 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/fonts')
-rw-r--r-- | Master/texmf-dist/doc/fonts/xcharter/README | 101 | ||||
-rw-r--r-- | Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.pdf | bin | 0 -> 220194 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.tex | 92 |
3 files changed, 193 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/fonts/xcharter/README b/Master/texmf-dist/doc/fonts/xcharter/README new file mode 100644 index 00000000000..b6eaceaddb9 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/xcharter/README @@ -0,0 +1,101 @@ + XCharter Fonts + Michael Sharpe + 2013-10-28 + +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/tex-archive/help/Catalogue/licenses.lppl.html +for the details of that license. + +Original Bitstream Free font license: + + (c) Copyright 1989-1992, Bitstream Inc., Cambridge, MA. + + You are hereby granted permission under all Bitstream propriety rights + to use, copy, modify, sublicense, sell, and redistribute the 4 + Bitstream Charter (r) Type 1 outline fonts for any purpose and without + restriction; provided, that this notice is left intact on all copies + of such fonts and that Bitstream's trademark is acknowledged as shown + below on all unmodified copies of the 4 Charter Type 1 fonts. + + BITSTREAM CHARTER is a registered trademark of Bitstream Inc. + +The font modifications are Copyright (c) 2013, Michael Sharpe. + + +Current version: 1.00 + +The otf fonts contain all the kerning and other tables. Should you wish to modify these yourself, the basic LaTeX support files may be re-created using the command + +/usr/texbin/autoinst --noupdmap --noswash --notitling --noornaments --target=./texmf --encoding=TS1,T1,LY1 --vendor=public --typeface=xcharter *.otf + +after cding to the folder containing just the modified otf fonts and a subfolder named texmf. You should replace the newly generated XCharter.sty with the one from the distribution in order to preserve its functionality. The names of the encoding files should also be modified appropriately from those assigned by autoinst. I used the following bash shell script, which assumed you are in the directory holding the otf files and a texmf subfolder: + +#!/bin/bash +pushd texmf/fonts/map/dvips/xcharter +sed -i '' 's/<\[a_/<\[XCh_/g' XCharter.map +popd +pushd texmf/fonts/enc/dvips/xcharter +for f in *.enc; do mv ${f} XCh${f:1}; done +popd + +Creating the parallel version of the osf fonts (labelled osfx) with a small 1 rather than a short I for oldstyle one was somewhat laborious: +1. Copy the relevant .enc files, providing them new names, and replace one.oldstyle to oneAlt.oldstyle in each. Change the internal encoding name as well. +2. Use afm2tfm to create a new raw tfm file for each, with names like XCharter-Roman-osfx-t1--base.tfm. The commands were + + afm2tfm XCharter-Bold -T XCh_o3e.enc XCharter-Bold-osfx-ly1--base + afm2tfm XCharter-Bold -T XCh_57c.enc XCharter-Bold-osfx-t1--base + afm2tfm XCharter-Bold -T XCh_gev.enc XCharter-Bold-osfx-sc-ly1--base + afm2tfm XCharter-Bold -T XCh_7ya.enc XCharter-Bold-osfx-sc-t1--base + afm2tfm XCharter-BoldItalic -T XCh_o3e.enc XCharter-BoldItalic-osfx-ly1--base + afm2tfm XCharter-BoldItalic -T XCh_57c.enc XCharter-BoldItalic-osfx-t1--base + afm2tfm XCharter-BoldItalic -T XCh_gev.enc XCharter-BoldItalic-osfx-sc-ly1--base + afm2tfm XCharter-BoldItalic -T XCh_7ya.enc XCharter-BoldItalic-osfx-sc-t1--base + afm2tfm XCharter-Italic -T XCh_o3e.enc XCharter-Italic-osfx-ly1--base + afm2tfm XCharter-Italic -T XCh_57c.enc XCharter-Italic-osfx-t1--base + afm2tfm XCharter-Italic -T XCh_gev.enc XCharter-Italic-osfx-sc-ly1--base + afm2tfm XCharter-Italic -T XCh_7ya.enc XCharter-Italic-osfx-sc-t1--base + afm2tfm XCharter-Roman -T XCh_o3e.enc XCharter-Roman-osfx-ly1--base + afm2tfm XCharter-Roman -T XCh_57c.enc XCharter-Roman-osfx-t1--base + afm2tfm XCharter-Roman -T XCh_nhq.enc XCharter-Roman-osfx-sc-ly1--base + afm2tfm XCharter-Roman -T XCh_774.enc XCharter-Roman-osfx-sc-t1--base + +Copy the resulting tfm files to the tfm folder and assemble the output with appropriate pfb files appended to XCharter.map. + +3. Create virtual vpl files for each osf tfm/vf pair, using + +vftovp XCharter-Roman-osf-t1 XCharter-Roman-osf-t1 XCharter-Roman-osf-t1 +vftovp XCharter-Roman-osf-ly1 XCharter-Roman-osf-ly1 XCharter-Roman-osf-ly1 +vftovp XCharter-Roman-osf-sc-t1 XCharter-Roman-osf-sc-t1 XCharter-Roman-osf-sc-t1 +#tftopl XCharter-Roman-osf-sc-ot1 XCharter-Roman-osf-sc-ot1 +vftovp XCharter-Roman-osf-sc-ly1 XCharter-Roman-osf-sc-ly1 XCharter-Roman-osf-sc-ly1 +vftovp XCharter-Bold-osf-t1 XCharter-Bold-osf-t1 XCharter-Bold-osf-t1 +vftovp XCharter-Bold-osf-ly1 XCharter-Bold-osf-ly1 XCharter-Bold-osf-ly1 +vftovp XCharter-Bold-osf-sc-t1 XCharter-Bold-osf-sc-t1 XCharter-Bold-osf-sc-t1 +vftovp XCharter-Bold-osf-sc-ly1 XCharter-Bold-osf-sc-ly1 XCharter-Bold-osf-sc-ly1 +vftovp XCharter-BoldItalic-osf-t1 XCharter-BoldItalic-osf-t1 XCharter-BoldItalic-osf-t1 +vftovp XCharter-BoldItalic-osf-ly1 XCharter-BoldItalic-osf-ly1 XCharter-BoldItalic-osf-ly1 +vftovp XCharter-BoldItalic-osf-sc-t1 XCharter-BoldItalic-osf-sc-t1 XCharter-BoldItalic-osf-sc-t1 +vftovp XCharter-BoldItalic-osf-sc-ly1 XCharter-BoldItalic-osf-sc-ly1 XCharter-BoldItalic-osf-sc-ly1 +vftovp XCharter-Italic-osf-t1 XCharter-Italic-osf-t1 XCharter-Italic-osf-t1 +vftovp XCharter-Italic-osf-ly1 XCharter-Italic-osf-ly1 XCharter-Italic-osf-ly1 +vftovp XCharter-Italic-osf-sc-t1 XCharter-Italic-osf-sc-t1 XCharter-Italic-osf-sc-t1 +vftovp XCharter-Italic-osf-sc-ly1 XCharter-Italic-osf-sc-ly1 XCharter-Italic-osf-sc-ly1 + +4 For each resulting vpl, change the name fragment -osf- to -osfx- and within the file, remove the two checksum lines and change the source file name similarly. That is, in the section + +MAPFONT D 0 + +change + +(FONTNAME XCharter-Bold-osf-t1--base) to (FONTNAME XCharter-Bold-osfx-t1--base) + +5. Copy the resulting vpl files to a new empty folder, cd to that folder and run + +apply vptovf *.vpl + +to produce the required tfm/vf alternate pairs, and move them to appropriate locations. + +(It would have been much easier to write a simple fontinst driver script for this, but the current version of otftotfm does not place all f-ligatures in the correct slots as specified by the T1 and LY1 encodings.) + +Please send comments and bug reports or suggestions for improvement to + +msharpe at ucsd dot edu
\ No newline at end of file diff --git a/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.pdf b/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.pdf Binary files differnew file mode 100644 index 00000000000..9dbc8527106 --- /dev/null +++ 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 new file mode 100644 index 00000000000..58a1c9dfc69 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.tex @@ -0,0 +1,92 @@ +\documentclass[11pt]{article} +\usepackage[margin=1in]{geometry} +\usepackage[parfill]{parskip} + +\usepackage[scaled=1.03,varqu,varl]{zi4} +\usepackage[type1]{cabin} +\pdfmapfile{+XCharter.map} +\usepackage[scaled=.98]{XCharter} +\usepackage[T1]{fontenc} +\linespread{1.04} +\usepackage[libertine,scaled=1.07]{newtxmath} +\usepackage[cal=boondoxo,bb=boondox,frak=boondox]{mathalfa} +\useosf +\font\osfIfnt=XCharter-Roman-osf-t1 at 11pt +\font\osffnt=XCharter-Roman-osfx-t1 at 11pt + +%\usepackage[cal=rsfso]{mathalfa} +%\usepackage{bm}% load after all math to give access to bold math +\title{The XCharter Font Package} +\author{Michael Sharpe} +%\date{} +\begin{document} +\maketitle + + +\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 designed 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.) + +Support files are provided for T$1$, TS$1$ and LY$1$ encodings. The package has a number of options: +\begin{itemize} +\item +{\tt scaled=.98}, for example, scales all text to 98\% of specified size; +\item {\tt lining} (or just {\tt lf}) makes lining figures ($0123456789$) the default for text---this is set automatically and does not need to be entered explicitly; +\item {\tt oldstyle} (or {\tt osf}) sets the figure style to oldstyle (\textosf{0123456789}) with numeral one like a shortened $1$; +\item {\tt oldstyleI} (or {\tt osfI}) sets the figure style to oldstyle (\textosfI{0123456789}) with numeral one like a shortened I; +\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. +\end{itemize} +\textsc{Special Macros:} +\begin{itemize} +\item +\verb|\useosf| (usable only in the preamble) is handy for changing the text figure style to {\tt osf}---see example 2 below. It must be loaded after {\tt newtxmath} so that math mode doesn't use oldstyle figures. +\item \verb|\useosfI| (usable only in the preamble) is handy for changing the text figure style to {\tt osfI}. It must be loaded after {\tt newtxmath} so that math mode doesn't use oldstyle 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|\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} + +Two 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}. + +\textsc{Example 1:} +\begin{verbatim} +\usepackage[charter,expert]{mathdesign} +\usepackage[scaled=.96,osf]{XCharter}% matches the size used in math +\linespread{1.04} +\end{verbatim} + +\textsc{Example 2:} +\begin{verbatim} +\usepackage[scaled=.98,sups]{XCharter}% lining figures in math +\usepackage[scaled=1.04,varqu,varl]{zi4}% inconsolata typewriter +\usepackage[type1]{cabin}% sans serif +\usepackage[libertine,bigdelims,scaled=1.07]{newtxmath} +\usepackage[cal=boondoxo,bb=boondox,frak=boondox]{mathalfa} +\linespread{1.04} +\useosf % oldstyle figures in text +\end{verbatim} +Here is a short sample based on the preamble of \textsc{Example 2}:\\[4pt] +\def\Pr{\ensuremath{\mathbb{P}}} +\def\rmd{\mathrm{d}} +The typeset math below follows the ISO recommendations that only variables +be set in italic. Note the use of upright shapes for $\rmd$, $\mathrm{e}$ +and $\uppi$. (The first two are entered as \verb|\mathrm{d}| and +\verb|\mathrm{e}|, and in fonts derived from {\tt newtxmath} or {\tt mtpro2}, + the latter is entered as \verb|\uppi|.) + +\textbf{Simplest form of the \textit{Central Limit Theorem}:} \textit{Let +$X_1$, $X_2,\cdots$ be a sequence of iid random variables with mean $0$ +and variance $1$ on a probability space $(\Omega,\mathcal{F},\Pr)$. Then} +\[\Pr\left(\frac{X_1+\cdots+X_n}{\sqrt{n}}\le y\right)\to\mathfrak{N}(y)\coloneq +\int_{-\infty}^y \frac{\mathrm{e}^{-t^2/2}}{\sqrt{2\uppi}}\, +\mathrm{d}t\quad\mbox{as $n\to\infty$,}\] +\textit{or, equivalently, letting} $S_n\coloneq\sum_1^n X_k$, +\[\mathbb{E} f(S_n/\sqrt{n})\to \int_{-\infty}^\infty f(t) +\frac{\mathrm{e}^{-t^2/2}}{\sqrt{2\uppi}}\,\mathrm{d}t +\quad\mbox{as $n\to\infty$, for every $f\in\mathrm{b} +\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. + +\end{document}
\ No newline at end of file |