From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- fonts/txuprcal/README | 22 +++++++++++ fonts/txuprcal/doc/txuprcal-doc.pdf | Bin 0 -> 84390 bytes fonts/txuprcal/doc/txuprcal-doc.tex | 66 ++++++++++++++++++++++++++++++++ fonts/txuprcal/map/TXUprCal.map | 2 + fonts/txuprcal/tex/txuprcal.sty | 13 +++++++ fonts/txuprcal/tex/utxuprcal.fd | 24 ++++++++++++ fonts/txuprcal/tfm/txUprCal-Bold.tfm | Bin 0 -> 712 bytes fonts/txuprcal/tfm/txUprCal-Regular.tfm | Bin 0 -> 712 bytes fonts/txuprcal/type1/txuprcal-bold.pfb | Bin 0 -> 25703 bytes fonts/txuprcal/type1/txuprcal-reg.pfb | Bin 0 -> 25594 bytes 10 files changed, 127 insertions(+) create mode 100644 fonts/txuprcal/README create mode 100644 fonts/txuprcal/doc/txuprcal-doc.pdf create mode 100644 fonts/txuprcal/doc/txuprcal-doc.tex create mode 100644 fonts/txuprcal/map/TXUprCal.map create mode 100644 fonts/txuprcal/tex/txuprcal.sty create mode 100644 fonts/txuprcal/tex/utxuprcal.fd create mode 100644 fonts/txuprcal/tfm/txUprCal-Bold.tfm create mode 100644 fonts/txuprcal/tfm/txUprCal-Regular.tfm create mode 100644 fonts/txuprcal/type1/txuprcal-bold.pfb create mode 100644 fonts/txuprcal/type1/txuprcal-reg.pfb (limited to 'fonts/txuprcal') diff --git a/fonts/txuprcal/README b/fonts/txuprcal/README new file mode 100644 index 0000000000..20dc8b6297 --- /dev/null +++ b/fonts/txuprcal/README @@ -0,0 +1,22 @@ +This small package provides a means of loading as \mathcal an uprighted version of the calligraphic fonts from the TX font package. A scaled option to provided to allow arbitrary scaling. + +Current version: 1.00 + + +As the fonts on which these were based are licensed under GPL 3.0, so are the fonts in +this package. More specifically, the fonts in this package are covered by the GNU +General Public License (GPL) with a special exception. See http://www.gnu.org/licenses/licenses.html#GPL +for the details of GPL. The special exception is as follows: + + Permission is granted to include the fonts + in a document in the Postscript, PDF, or any other + formats that may be displayed or printed using these + fonts, regardless of the licensing condition applied + to the document itself. + +The support files are subject to the LaTeX Project Public License. See +http://www.ctan.org/license/lppl1.3 +for the details of that license. + +Michael Sharpe +msharpe at ucsd dot edu \ No newline at end of file diff --git a/fonts/txuprcal/doc/txuprcal-doc.pdf b/fonts/txuprcal/doc/txuprcal-doc.pdf new file mode 100644 index 0000000000..11321b3003 Binary files /dev/null and b/fonts/txuprcal/doc/txuprcal-doc.pdf differ diff --git a/fonts/txuprcal/doc/txuprcal-doc.tex b/fonts/txuprcal/doc/txuprcal-doc.tex new file mode 100644 index 0000000000..00cd7e83df --- /dev/null +++ b/fonts/txuprcal/doc/txuprcal-doc.tex @@ -0,0 +1,66 @@ +% !TEX TS-program = pdflatexmk +\documentclass[11pt]{article} +\pdfmapfile{+TXUprCal.map} +%SetFonts +% newtxtext+newtxmath +\usepackage{newtxtext} %loads helv for ss, txtt for tt +\usepackage{amsmath} +\usepackage[bigdelims]{newtxmath} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +%SetFonts +\usepackage[margin=1.4in]{geometry} +%\geometry{landscape} % Activate for for rotated page geometry +\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent +\usepackage{url}\usepackage{graphicx} +\DeclareRobustCommand{\Qupr}{% +\text{{\usefont{U}{txuprcal}{m}{n}Q\/}}} + +\usepackage{hyperref} +\title{TX Upright Calligraphic} +\author{Michael Sharpe\\ +msharpe at ucsd dot edu} +\date{} + +\begin{document} +\maketitle +The {\tt pfb} files in this package are taken from the the upper-case glyphs in the TX symbols fonts, made upright and reworked to appear appropriately shaped. +From these, using {\tt afm2tfm} and {\tt fontinst}, two {\tt tfm} files were produced: +\begin{verbatim} +txUprCal-Bold.tfm +txUprCal-Regular.tfm +\end{verbatim} + +There are two ways to use these. The traditional method is based on {\tt.sty} and {\tt.fd} files: {\tt txuprcal.sty} and {\tt utxuprcal.fd}. For example, +\begin{verbatim} +\usepackage[scaled=.95]{txuprcal} +\end{verbatim} +redefines the output from \verb|\mathcal| and \verb|\mathbcal| to come from {\tt TXUprCal-Regular} and {\tt TXUprCal-Bold} respectively, scaled to 95\% of normal size. + +The second method uses a different interface not depending on the {\tt.sty} and {\tt.fd} files at all. The package \textsf{mathalfa } permits you to say +\begin{verbatim} +\usepackage[cal=txuprcal,calscaled=.95]{mathalfa} +\end{verbatim} +to accomplish the same effect as the above. + +See the \textsf{mathalfa} documentation for font samples of these and many other math alphabets. + + +Because using it in the ways described above adds an extra math family, it may be desirable to load it not as a math font but as a text font that is used as a fake math font. This can be desirable if only a few glyphs are used, all of which can be tweaked and given their own macro names. + +Here is an incomplete example. The {\tt fd} file for this package is {\tt utxuprcal.fd}. Therefore +\begin{verbatim} +\DeclareRobustCommand{\Qupr}{% +\text{{\usefont{U}{txuprcal}{m}{n}Q\/}}} +\end{verbatim} +used within a math fragment makes \verb|Qupr| render as the letter Q in regular weight from TXUprCal. The \verb|\/| in its definition is not necessary, but should be followed for other letters which may have an italic correction, without which the glyph would not render correctly. Not having the attributes of a glyph from a math font, you may have to tweak accent placement as well as subscript and superscript placement. However, the definition does size correctly in formulas. Because the shapes are upright, there should be not be serious problems with subscripts and superscripts, though you may occasionally need to add an \verb|\mkern| to correct a horizontal position. It is usually best to place subscripts and superscripts on an empty character immediately following. For example: + +\verb|$\skew1\hat{\Qupr}{}^p_n}$|:$\quad \skew1\hat{\Qupr}{}^p_n$\\ +\verb|$\frac{\Qupr+\sqrt{2\pi}}{\Qupr+1}$|:$\quad \frac{\Qupr+\sqrt{2\pi}}{\Qupr+1}$\\ + +If you need to scale the text font {\tt txuprcal}, give a numeric scale value to \verb|\TXUprCalScale|> For example: +\begin{verbatim} +\def\TXUprCalScale{1.02} +\end{verbatim} + +\end{document} \ No newline at end of file diff --git a/fonts/txuprcal/map/TXUprCal.map b/fonts/txuprcal/map/TXUprCal.map new file mode 100644 index 0000000000..58337fadcc --- /dev/null +++ b/fonts/txuprcal/map/TXUprCal.map @@ -0,0 +1,2 @@ +txUprCal-Regular txUprCal-Regular {scaled}% +\ProcessOptionsX\relax% +\let\mathcalr\undefined +\let\mathbcal\undefined +\DeclareMathAlphabet{\mathcal}{U}{txuprcal}{m}{n} +\SetMathAlphabet{\mathcal}{bold}{U}{txuprcal}{b}{n} +\DeclareMathAlphabet{\mathbcal} {U}{txuprcal}{b}{n} +\endinput diff --git a/fonts/txuprcal/tex/utxuprcal.fd b/fonts/txuprcal/tex/utxuprcal.fd new file mode 100644 index 0000000000..a0f359706c --- /dev/null +++ b/fonts/txuprcal/tex/utxuprcal.fd @@ -0,0 +1,24 @@ +%Filename: utxuprcal.fd + +%THIS FILE SHOULD BE PUT IN A TEX INPUTS DIRECTORY + +\ProvidesFile{utxuprcal.fd} + [2017/02/22 Fontinst v1.933 font definitions for U/TXUprCal.] + +\@ifundefined{TXUprCalScale}% + {\let\TXUprCal@Scale\empty}% + {\edef\TXUprCal@Scale{s*[\TXUprCalScale]}} + +\DeclareFontFamily{U}{txuprcal}{\skewchar \font =45} + +\DeclareFontShape{U}{txuprcal}{m}{n}{ + <-> \TXUprCal@Scale txUprCal-Regular +}{} + +\DeclareFontShape{U}{txuprcal}{b}{n}{ + <-> \TXUprCal@Scale txUprCal-Bold +}{} + +\DeclareFontShape{U}{txuprcal}{bx}{n}{<->ssub * txuprcal/b/n}{} + +\endinput diff --git a/fonts/txuprcal/tfm/txUprCal-Bold.tfm b/fonts/txuprcal/tfm/txUprCal-Bold.tfm new file mode 100644 index 0000000000..c740cb8df8 Binary files /dev/null and b/fonts/txuprcal/tfm/txUprCal-Bold.tfm differ diff --git a/fonts/txuprcal/tfm/txUprCal-Regular.tfm b/fonts/txuprcal/tfm/txUprCal-Regular.tfm new file mode 100644 index 0000000000..59ac1fffb1 Binary files /dev/null and b/fonts/txuprcal/tfm/txUprCal-Regular.tfm differ diff --git a/fonts/txuprcal/type1/txuprcal-bold.pfb b/fonts/txuprcal/type1/txuprcal-bold.pfb new file mode 100644 index 0000000000..94cbe13b3a Binary files /dev/null and b/fonts/txuprcal/type1/txuprcal-bold.pfb differ diff --git a/fonts/txuprcal/type1/txuprcal-reg.pfb b/fonts/txuprcal/type1/txuprcal-reg.pfb new file mode 100644 index 0000000000..5680db1dcc Binary files /dev/null and b/fonts/txuprcal/type1/txuprcal-reg.pfb differ -- cgit v1.2.3