c# open pdf file in adobe reader : Cut pages out of pdf online SDK software API .net winforms web page sharepoint tlgc2extra6-part1465

21.5 UsingTrueTypefontswithpdfT
E
X
Figure21.19:TrueTypefontsampleofMicrosoTimesNewRomantypesetwithpdfT
E
X
(C:\TL2005\texmf\tex\latex\base\fontenc.sty
(C:\TL2005\texmf\tex\latex\base\t1enc.def)) (fonttest.aux)
(C:\TL2005\localtexmf\tex\latex\winfonts\t1tim.fd)
[1psfonts.map] (fonttest.aux) )T1-WGL4.enc
<timesbi.ttf><timesbd.ttf><timesi.ttf><times.ttf>
Output written on fonttest.pdf (1 page, 133017 bytes).
Transcript written on fonttest.log.
21.5.3 Unicode supportwithCyberbit
Unicodecontainscodepointsformostcharactersusedincurrent(andpast)languages.Untilrecently
fonts weredevelopedwiththe characters neededto support a givenfamilyoflanguagesthat use the
samecharacterset.HencethereexistmanydifferenttypefacesforlanguageswrittenwithLatin,Cyril-
lic,Greek,Indian,Japanese,Chinese,Korean,etc.characters.Nowadays,withsupportforUnicodebe-
comingmoregenerallyavailable,fontsetsincludingmanyhundredsofcharactersinseveraldifferent
alphabetsareappearing,especiallyintheOpenTypeformat.
Bitstream’sCyberbitTrueTypefont,whichhasbeenavailableforseveralyears,isaninternational
font, containingcharacters from manylanguages, with each character encodedat its Unicodevalue.
Cyberbit,developedoriginallybyBitstreamtoprovideUnicodeConsortiummemberswithatestfont,
canbe distributed freelyfor testingand other non-commercialpurposes. Weshall use the Cyberbit
fontwith
pdflatex
asanexampleoftypesettingamulti-lingualdocument.
21.5.3.1 GettingandinstallingtheCyberbitfont
WefirstdownloadtheCyberbitfont¹andinstallinonthesystem.
[1]> unzip cyberbit.zip
[2]> rename Cyberbit.ttf cyberbit.ttf
[3]> copy cyberbit.ttf \tl2005\localtexmf\fonts\truetype\bitstream
Nextwegenerate
.tfm
T
E
Xmetricand
.enc
encodingfiles,andcopythemtotherightplace,asfollows.
[1]> ttf2tfm cyberbit.ttf -w cyberbit@Unicode.sfd@ > cyberbit.log
[2]> copy *.tfm \tl2005\localtexmf\fonts\tfm\bitstream\cyberbit
[3]> copy *.enc \tl2005\localtexmf\fonts\enc\cyberbit
¹Seeftp://ftp.netscape.com/pub/communicator/extras/fonts/windows/cyberbit.zip.
ch-psextra1.tex,v:2.24
2007/08/14
51
Cut pages out of pdf online - remove PDF pages in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Provides Users with Mature Document Manipulating Function for Deleting PDF Pages
delete pages from a pdf document; acrobat export pages from pdf
Cut pages out of pdf online - VB.NET PDF Page Delete Library: remove PDF pages in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Visual Basic Sample Codes to Delete PDF Document Page in .NET
delete pages from a pdf file; delete a page from a pdf reader
21
POSTSCRIPTFONTSANDBEYOND
isshouldcopyatotalof165
.tfm
and
.enc
filestotheirrespectivedirectories.Next wecreatethe
file
\tl2005\localtexmf\ttf2tfm\base\ttfonts.map
andweenterthefollowinglineinit:
cyberbit@Unicode@ cyberbit.ttf
Nowwecreatethefile
\tl2005\localtexmf\web2c\updmap.cfg
andputthefollowinglineinit:
Map cyberbit.map #localtexmf\fonts\map\cyberbit.map
We download the Cyberbit map (
delloye.free.fr/cyberbit.map
) and font definition
(
delloye.free.fr/c70cyberbit.fd
)filesandcopythemtotherightplace.
[1]> copy cyberbit.map \tl2005\localtexmf\fonts\map\pdftex
[2]> copy c70cyberbit.fd \tl2005\localtexmf\tex\latex\cyberbit
Finally,werun
updmap
andrefreshtheT
E
Xdatabase(
texhash
).
21.5.3.2 Typesettingamulti-lingualdocument
AerinstallingtheCyberbitfont,wearereadytotestitwithaLAT
E
Xfilethatcontainsmultiplelanguages.
We take (minimal) advantage of Werner Lemberg’s
CJK
packageto indicatewe areusingthe
utf8
encodingandtheCyberbitfont.WeusedthefirstarticleoftheUniversalDeclarationofHumanRights¹
insevenlanguagesasatest.eLAT
E
Xinputfilefollows.
\documentclass[12pt,a4paper]{article}
\parindent0pt
\parskip\baselineskip
\newenvironment{Arabic}
{\TeXXeTstate=1\relax
\let\myeverypar\everypar
\newtoks\everypar
\everypar\expandafter{\the\myeverypar}
\myeverypar{\the\everypar\beginR}\beginR}
{\TeXXeTstate=0\relax}
\pagestyle{empty}
\usepackage{CJK}
\begin{document}
\begin{CJK}{UTF8}{cyberbit}
\begin{description}
\item[English]
\input udhreng
\item[French]
\input udhrfrn
\item[Russian]
\input udhrrus
\begin{Arabic}
\item[Arabic]
\input udhrarz
\end{Arabic}
\item[Chinese]
\input udhrchn
\item[Japanese] \input udhrjpn
\item[Korean]
\input udhrkkn
\end{description}
\end{CJK}
\end{document}
¹Availableathttp://www.unicode.org/udhr/inover300languages.
52
ch-psextra1.tex,v:2.24
2007/08/14
C# HTML5 PDF Viewer SDK to view PDF document online in C#.NET
Image: Copy, Paste, Cut Image in Page. Link: Edit URL. Bookmark can view PDF document in single page or continue pages. Support to zoom in and zoom out PDF page.
delete page in pdf; delete pages from a pdf
VB.NET PDF- View PDF Online with VB.NET HTML5 PDF Viewer
Remove Image from PDF Page. Image: Copy, Paste, Cut Image in can view PDF document in single page or continue pages. Support to zoom in and zoom out PDF page.
delete pages on pdf file; delete page in pdf reader
21.6 InstallingOpenTypeFontsinLAT
E
X
As wewant totypeset Arabic from right to le, we definean
Arabic
environment, which initiates
the relevant e-T
E
Xextension, thenensures that everyparagraph starts right-to-le typesetting. e
variousfilesthatareinputcontainforeachlanguagetwoparagraphs:thetitleandthefirstarticleofthe
Declaration.Whenwerunthisfile(udhrall.tex)withpdflatexwegettheresultshowninFigure21.20
onthenextpagetogetherwithfollowinglogoutput.
This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4)
entering extended mode
(udhrall
LaTeX2e <2003/12/01>
Babel <v3.8g> and hyphenation patterns for english, dumylang,
nohyphenation, german, ngerman, french, loaded.
(C:\tl2005\texmf\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\tl2005\texmf\tex\latex\base\size12.clo))
(C:\tl2005\texmf\tex\latex\CJK\CJK.sty
(C:\tl2005\texmf\tex\latex\CJK\mule\MULEenc.sty)
(C:\tl2005\texmf\tex\latex\CJK\CJK.enc))
No file udhrall.aux.
(C:\tl2005\texmf\tex\latex\CJK\UTF8\UTF8.bdg)
(C:\tl2005\texmf\tex\latex\CJK\UTF8\UTF8.enc)
(C:\tl2005\texmf\tex\latex\CJK\UTF8\UTF8.chr)
(udhreng.tex) (udhrfrn.tex
(C:\tl2005\localtexmf\tex\latex\cyberbit\c70cyberbit.fd))
(udhrrus.tex)(udhrarz.tex) (udhrchn.tex) (udhrjpn.tex)
(udhrkkn.tex) [1{psfonts.map}] (udhrall.aux) )
(see the transcript file for additional information)
{cyberbitd6.enc}<cyberbit.ttf>{cyberbitbc.enc}<cyberbit.ttf>
{cyberbitc2.enc}<cyberbit.ttf>{cyberbitcc.enc}<cyberbit.ttf>
[ ... ]
<C:\tl2005\texmf\fonts\type1\bluesky\cm\cmr12.pfb>
<C:\tl2005\texmf\fonts\type1\bluesky\cm\cmbx12.pfb>
Output written on udhrall.pdf (1 page, 374564 bytes).
Transcript written on udhrall.log.
Aerloadingthe
CJK
packagefilestheCyberbit fontdefinitions,andourseven
utf8
encodedsource
files are input. enmany lines follow indicatingthat theencodingfilefor a givencharacter range
(
cyberbitij
)isreadandtheneededcharactersareextractedfrom
cyberbit.ttf
.
Of course, for more advanced typesetting(contextual analysis to guarantee correct Arabic lig-
atures, etc.), one should useOmega(
http://omega.enstb.org/
)or a similar system, that fully
supportsOpenTypefontstohandletheneededpresentationalforms.
21.6 InstallingOpenTypeFontsinL
A
T
E
X
X
E
T
E
Xcanextractmetricinformation(includingkerningandligarures)directlyfromOpenTypefonts
(usinge.g.,OpenType’s
GPOS
and
GSUB
tables,whichmanage,respectively,characterpositioning,and
ghyphsubstitution). However, whenyouwant tousethebasicT
E
Xengine,theyou have to live with
font support files (
.tfm
and
.vf
)which arelimited to256character positions. Hence to access the
severalhundreds or eventhousands ofcharacters ina largeOpenTypefont wemust generatemany
.tfm
and
.vf
files,eachcontainingthemetricinformationaboutasmallpartoftheOpenTypefont.
eprogram
otftotfm
canperformthistask(seebelow).
ch-psextra1.tex,v:2.24
2007/08/14
53
VB.NET Image: Image Cropping SDK to Cut Out Image, Picture and
and easy to use .NET solution for developers to crop / cut out image file This online tutorial page will illustrate the image cropping function from following
acrobat extract pages from pdf; delete pages out of a pdf
VB.NET PDF Text Extract Library: extract text content from PDF
Extract highlighted text out of PDF document. Best VB.NET PDF text extraction SDK library and component for Online Visual Basic .NET class source code for quick
delete pages in pdf; delete page in pdf document
21
POSTSCRIPTFONTSANDBEYOND
English Universal Declaration of Human Rights
All human beings are born free and equal in dignity and rights. They
are endowed with reason and conscience and should act towards one
another in a spirit of brotherhood.
French Déclaration universelle des droits de l’homme
Tous les êtres humains naissent libres et égaux en dignitéet en droits.
Ils sont doués de raison et de conscience et doivent agir les uns envers
les autres dans un esprit de fraternité.
Russian A5>1I0O 45:;0@0F8O ?@02 G5;>25:0
A5;N48@>640NBAOA2>1>4=K<88@02=K<82A2>5<4>AB>8=AB25
8?@020E.=8=045;5=K@07C<><8A>25ABLN84>;6=K?>ABC?0BL
2>B=>H5=88 4@C3 4@C30 2 4CE5 1@0BAB20.
Arabic
F'3F%D' BHB-D JED'9D' F'D9%D'
'K1JE6HK'DB9'H(GH/BH.BHB-D'H)E'1CD'JAFJH'3*E'K1'1-#3'FD'9JE,/DHJ
.!'.%D' -H1( 'K69( EG69( DE'9J F# EGJD9H
Chinese LºC£ 
ºº   ê 1, (   % Œ C )     ‹ s I Ö ì K   
'Œ o Ã, v ” å D  s û „ ¾ ^ ø ù …
Japanese Lº)£ 
Yyfnº“o~ŒjL‰kWfê1gBŠKd ³h)
)h kdDfsIgB‹º“o'hoÃh’ˆQ‰ŒfJ
Š’Dk Þn¾^’‚cfLÕWjQŒpj‰jD
Korean 8 Ä x Œ   ¸
¨à x@ Ü´  L€0 • \°p ø tÄü Œ¬Ð ˆ´ Ùñ
Xä. x@ œ€<\ t1ü ‘ìD €ìX<p \ `
Xà<\ ‰ÙXì| \ä.
Figure21.20:Multi-lingualUnicodedocumenttypesetwiththeCyberbitTrueTypefont
Aninterestinggeneralintroductiontothetopicofexploitingthetypographicrichesoflargefonts
isSivanToledo’sarticleinTugBoat[19].
IntheUnitedStatesAdobesellsalow-costCD-ROMAdobeTypeClassicsforLearning(see
http:
//www.adobe.com/education/products/typeclassics.html
),whichcontainsamixof400
Westernfonts and 26JapanesefontsinOpenTypeformat, including “classics,”such as AdobeGara-
mond,Minion,Myriad,and Caslon.BecauseoftheavailabilityofthisCD-ROM,mostworkrelatedto
makingOpenTypefontsworkwithLAT
E
XusefontsavailableonthatCD-ROM.
54
ch-psextra1.tex,v:2.24
2007/08/14
C# PDF Text Extract Library: extract text content from PDF file in
Free online source code for extracting text from adobe Ability to extract highlighted text out of PDF C# example code for text extraction from all PDF pages.
cut pages from pdf reader; delete page pdf file
VB.NET PDF - View PDF with WPF PDF Viewer for VB.NET
Image from PDF Page. Image: Copy, Paste, Cut Image in PDF pages extract, copy, paste, C#.NET rotate PDF pages, C#.NET Abilities to zoom in and zoom out PDF page.
delete pages from pdf preview; copy pages from pdf to word
21.6 InstallingOpenTypeFontsinLAT
E
X
21.6.1 CreatingtheL
A
T
E
Xfontinstances
MichaelSaundersworkedoutaproceduretoinstallanduseOpenTypefontswithLAT
E
X.¹Hegenerated
anNFSSpackagetoaccessOpenTypefeatures.Hebasicallyseparatedseriesintoweightandwidthaxes
andshapeintotwoindependentaxesandheintroducedseveralmacrosforsettingfractions.Weshall
describethisworkinsomewhatmoredetail.
MichaeldevelopedhistoolsfortheAdobeCaslonProfont(fromtheAdobeTypeClassicsforLearn-
ingCD-ROM),whichcomesinthreeweightsdividedintosixfiles:
ACaslonPro-Bold.otf
ACaslonPro-BoldItalic.otf
ACaslonPro-Semibold.otf
ACaslonPro-SemiboldItalic.otf
ACaslonPro-Regular.otf
ACaslonPro-Italic.otf
EddieKohler’s
otftotfm
tool(
http://www.lcdf.org/type/otftotfm.1.html
)wasusedto
prepare theinstallation.Previously, with some operatingsystems limitingfilenamesto eightcharac-
ters,itwascommonpracticetouseBerrynamingscheme(seeSection21.7).Nowadaysthislimitno
longerapplies,sothatitseemsappropriatetojustusethefontnamesgivenbythefontvandors.Forthe
encoding
LY1
(seeSection7.11.4,andinparticularTable7.33of[15])hasbeenusedsinceitseemsto
bebestsuitedforOpenType.
OpenTypeandLAT
E
X’sNFSSsupportmanyfeatures.ForthecaseofCaslonProMichealhasclassi-
fiedthemastwoaxesplusornaments.(efeaturethatmustbeusedtoactivatethegivenfontbehavior
isgivenbetweensquarebrackets;fordetailsseethedescriptionof
otftotfm
attheURLgivenpreviously.
elistofavailablefeaturesforafontcanbeobtainedbytheprogram
otfinfo
,seeSection21.6.3)
Majoraxis
• Roman(
rm
,
r
):normal,uprighttext.
• Italic(
it
,
i
):slanted,stylizedtextusedforemphasis.
• Slanted(
sl
,
s
): Roman letter forms slanted to match the Italics [
-S slt
,
slt
being the
tangentofslantoftheItalics]
• UprightItalic(
ui
,
u
):ItalicletterformsslantedbackwardstomatchtheRomans.Mainlyuseful
indisplays.[
-S -amt
]
Minoraxis
• regular(
rg
):usual,normalshape[
-fpnum -fonum
];
• all-caps(
ac
)altersthespacingaroundcapsandthepunctuationtoharmonizewithcapitals
[
-fcpsp -fcase -fpnum -flnum
];
• small-caps(
sc
): speciallydesigned capitalletterforms that harmonize wellwithlowercase
[
-fsmcp
];
• swashes(
sw
):calligraphicformsusedmostlyindisplays[
-fswsh
];
• inferiorfigures(
in
):small,lownumbers[
-fsinf
];
• superiorfigures(
su
): superscripts, e.g., for footnote marks and ordinalnumbers [
-fsups
-fordn
];
• numerators(
nu
):foruseinfractions[
-fnumr
];
• denominators(
de
):foruseinfractions[
-fdnom
];
• proportionalold-stylefigures(
po
):variable-widthArabiclowercasenumeralswithdifferent
heights[
-fpnum -fonum
];
• proportionallining(
pl
): variable-width Arabic numerals with identicalheights that work
wellwithuppercase[
-fpnum -flnum
];
¹Hiswebpagehttp://members.fortunecity.com/odradek5/otf-LaTeX/index.htmldocumentshisfinding.
ch-psextra1.tex,v:2.24
2007/08/14
55
C# WPF PDF Viewer SDK to view PDF document in C#.NET
Image from PDF Page. Image: Copy, Paste, Cut Image in PDF pages extract, copy, paste, C#.NET rotate PDF pages, C#.NET Abilities to zoom in and zoom out PDF page.
delete pages from pdf; pdf delete page
C# PDF Form Data fill-in Library: auto fill-in PDF form data in C#
Free online C# sample code can help users to fill in fill in form field in specified position of adobe PDF file. Able to fill out all PDF form field in C#.NET.
cut pages from pdf preview; delete pdf pages reader
21
POSTSCRIPTFONTSANDBEYOND
• tabular old-style figures (
to
): identical-width Arabic lowercase numerals with different
heights[
-tnumf -fonum
];
• tabularliningfigures(
tl
):identical-widthArabicuppercasenumeralswithidenticalheights
[
-tnumf -flnum
].
Ornaments [
-fornm
]
Byusinganappropriateswitchonecanselectthedefaultstyleofdigitstousewiththeshapes
rg
,
ac
,
sc
,
and
sw
.Usuallyonehasproportionalliningfigureswith all-capsandswashes(oenusedindisplays)
andproportionalold-stylesinnormaltextandwithsmall-caps.Tabularsareonlyforspecialsituations
wherealignmentsareimportant,suchastablesandlists(seealsoFigure21.21onpage64forexamples
withMinionPro).
Oneofthe
otfmtotfm
commands(splitartificiallyovertwolinesforlackofspace)thatwasusedto
setupthefilesforCaslonProfollows.¹
otftotfm -a -e texnansx ACaslonPro-Regular.otf -fcpsp -fcase -fpnum -flnum \
-fkern -fliga --altselector-char=® --force LY1--ACaslonPro-RegularAC
is will create the
.tfm
file
LY1–ACaslonPro-RegularAC.tfm
, the
.vf
file
LY1–ACaslonPro-RegularAC.vf
,plus an encoding file for
dvips
.Standard switches were used
toenable ligatures andkerning. e
-a
switch lets
otftotfm
placeeverythingwhere it belongs inthe
T
E
Xdirectorytree. e
-altselector-char
switch specifiesthe character (®) that givesaccessto
alternatestylistic forms of thesamecharacter if they exist, e.g., a calligraphic variant or anhistori-
cal ligature. e
texnansx
encoding(
-e
switch) corresponds to LAT
E
X’s
LY1
,a variant of
T1
(it is
documentedat
CTAN:info/fontname/html/texnansx.html
.)
21.6.1.1 Preparingthefontdescription(
.fd
)andpackagefiles
efontdescriptionfile
LY1ACaslonPro.fd
startswith²
\ProvidesFile{LY1ACaslonPro.fd}[2005/07/13 Adobe Caslon Pro font definitions]
\DeclareFontFamily{LY1}{ACaslonPro}{}
\DeclareFontShape{LY1}{ACaslonPro}{mdnw}{rrg}{ <-> LY1--ACaslonPro-Regular }{}
\DeclareFontShape{LY1}{ACaslonPro}{mdnw}{rac}{ <-> LY1--ACaslonPro-RegularAC }{}
\DeclareFontShape{LY1}{ACaslonPro}{mdnw}{rsc}{ <-> LY1--ACaslonPro-RegularSC }{}
Wenoticetheregular (
rrg
),all-caps(
rac
),andsmall-caps(
rsc
)definitions,which refertothelong
filenamesshown.is
.fd
fileisplacedintheT
E
Xtreestructure(e.g.,,inourcase
/TL2005/texmf-
var/tex/latex/lcdftools
). is file defines low-level commands for font series, shapes, etc.
For end users a high-level interface defined in an ad-hoc package file cancontaincommands like
\iscshape
(and its equivalent with an argument
\textisc
)for Italic small-caps,
\ltweight
(
\textlt
)for light weight, ornaments can be accessed with an
\ornament
command, etc.. Other
nicefeaturescanincludefootnotemarksusingsuperiordigits,simpleandcompoundvulgarfractions,
andtimesignatures,etc..
Ofcourse,withGreek,Cyrillic(andArabicandHebrew)charactersfurtherencodingandtypeset-
tingissueshavetobeaddressed.Moreover,whenopticalvariants(i.e.,fontsourcefilesattwoormore
differentsizes)arepresent,thecommandsinthe
.fd
filemustbemodifiedtousetheappropriatesize
fileatagivencharacterheight.
¹efileathttp://members.fortunecity.com/odradek5/otf-LaTeX/otftotfm.commands.txt contains all
the
otfmtotfm
commandsneededtoinstallthethreeweightswiththe49options.
²efullfileisathttp://members.fortunecity.com/odradek5/otf-LaTeX/LY1ACaslonPro.fd.txt.
56
ch-psextra1.tex,v:2.24
2007/08/14
VB.NET PDF- HTML5 PDF Viewer for VB.NET Project
Remove Image from PDF Page. Image: Copy, Paste, Cut Image in NET comment annotate PDF, VB.NET delete PDF pages, VB.NET PDF page and zoom in or zoom out PDF page
delete pdf pages; delete pages of pdf preview
VB.NET PDF - WPF PDF Viewer for VB.NET Program
Image from PDF Page. Image: Copy, Paste, Cut Image in Online Guide for Using RasterEdge WPF PDF Viewer to View PDF pages, zoom in or zoom out PDF pages and go to
delete page on pdf; delete a page in a pdf file
21.6 InstallingOpenTypeFontsinLAT
E
X
21.6.2 UsingtheLCDFTypetools
JohnOwens’shaswrittenaproceduretoinstallAdobeOpenTypefontsforusewithLAT
E
X.Italsouses
the
otftotfm
programwhichitcallsinsideawrapperscript(writteninPython)tosimplifytheinstalla-
tionmethodandallowforeasyextensiontootherfontsandsetups.
ForagivenfontfamilyJohn’sinstallationscript¹automatestheloopoverthemanycallsto
otftotfm
(whichonlytakesasinglesetofoptionsandonefontfileatatime)foreachfontinstanceofthevarious
series,shapes,andoptions(regular,italic,bold,smallcaps,old-stylefigures,etc.)oftheOpenTypefont.
epreocedurewastestedonAdobeCaslonwithoutopticalsandonAdobeMinionwithopticals.
Eachfontplacesitsoptionsinthe
typefaces
hash,whosefieldsare
typefaceoptions
(applied
toallfontfiles,suchaskerningandligatures),
options
(alistofoptionsinturntobeappliedtoeach
file),
prefix
(thefirstthreecharactersoftheBerrynamingscheme),opticalsizes(whenapplicable),
and
vendor
and
typeface
strings.Forinstance,hereistheentryforMinionPro:
typefaces = { ’Minion Pro’:
{ ’typefaceoptions’: [’kern’, ’liga’],
’options’: [’smcp’, ’onum’],
’prefix’: ’pmn’,
’vendor’: ’adobe’,
’typeface’: ’Minion’,
’opticals’: { ’caption’: ’-8.4’,
’regular’: ’8.5-13.0’,
’subhead’: ’13.1-19.9’,
’display’: ’20-’,
}
},
escripts looksat thefont’sfilenametodecidethecharacteristicsofthefont (italic,bold,semibold,
condensed, etc.). It cangenerateeithertheBerryfilenamebasedonthesecharacteristicsorlongfile-
names,wherethelatterarepreferredasmorereadable.e
LY1
(
8y
)encodingisused.
eargumenttothescriptisasinglepath.Ifitcorrespondstoadirectory,allfilesinthatdirectory
willbeused, otherwise it willbeglobbedtogenerateoneor moredirectories,and allfilesineach of
thosedirectorieswillbeused.escriptalsocalls
updmap
and
texhash
uponcompletion.Finally, the
.fd
and
.sty
aregenerated.
21.6.2.1 Fontdefinition(
fd
)files
Eachfontfamilymusthaveanassociatedfontdefinitionfilewhichmapsfontpropertiestofontnames.
Asthe
LY1
encodingwasusedfilenamesareofthetype
ly1BBBx.fd
and
ly1PPPj.fd
,where
BBB
is theBerryprefix, “
x
”is forexpertfonts butno old-stylefigures,and“
j
”indicatesold-stylefigures.
Internallythe
.fd
filesuselong(vendor-supplied)filenames,asthefollowingexcerptof
ly1pacx.fd
shows.
% Autogenerated by ./otfinst.py on 2005/06/28
\ProvidesFile{ly1pacx.fd}[2005/06/28 LY1/Adobe Caslon Pro]
\DeclareFontFamily{LY1}{pacx}{}
\DeclareFontShape{LY1}{pacx}{sb}{sc}{
<-> LY1-ACaslonPro-Semibold-kern-liga-smcp}{}
\DeclareFontShape{LY1}{pacx}{sb}{sl}{ <-> sub * pacx/sb/it}{}
¹Available at http://www.ece.ucdavis.edu/~jowens/code/otfinst/otfinst.py or in the directoryCTAN:
fonts/utilities/otfinst.
ch-psextra1.tex,v:2.24
2007/08/14
57
21
POSTSCRIPTFONTSANDBEYOND
\DeclareFontShape{LY1}{pacx}{sb}{it}{
<-> LY1-ACaslonPro-SemiboldItalic-kern-liga}{}
\DeclareFontShape{LY1}{pacx}{sb}{n}{
<-> LY1-ACaslonPro-Semibold-kern-liga}{}
21.6.2.2 Packagefiles(
sty
)
epackagefiledeclaresthefontfamilythatLAT
E
Xshoulduseinthedocument.erearetwooptions,
oldstyle
(default)and
lining
,forusingold-styleorliningnumerals,respectively.
JohnOwensmakesthefollowingexamplefilesavailable:
• AdobeMinionPro:
ly1pmnx.fd
,
ly1pmnj.fd
,and
minion.sty
.Inthiscaseseveral“opticals”
(multiplefontfilesforeachfontshape)areavailablesothatinthe
.fd
files theappropriatefont
fileischosendependingonthesizeoftheoutput.
• AdobeCaslonPro:
ly1pacx.fd
,
ly1pacj.fd
,and
acaslon.sty
.
• AdobeGaramondPro:
ly1padx.fd
,
ly1padj.fd
,and
agaramond.sty
.
IngeneralOpenTypefonts(and
otftotfm
)supportmanymoreoptions(e.g.,variablewidthdigits,
fractions),buttheseareatpresentnotsupportedbyJohnOwens’sscript.isismostlyduetothefact
thatsuchfeaturesareatpresentonlypoorlyornotatallsupportedbyLAT
E
X.
21.6.3 UsingtheMinionProOpenTypefont
MinionProisanAdobeOriginaltypefacedesignedbyRobert Slimbach. is typefaceisinspiredby
classical,oldstyletypefacesofthelateRenaissance,aperiodofelegant,beautiful,andhighlyreadable
typedesigns.AfirstversionofMinionwasreleasedin1990,Cyrilliccharacterswereaddedin1992and
aMultipeMasterversionwasdistributedsoonaerwards. Finally,thepresentOpenTypeMinionPro
versionwasfirstreleased in2000.efullMinionProfamilycontains threeweightsandtwowidths,
eachwithopticalsizevariants,andeachsupportingafullrangeofWesternlanguages,includingGreek
andCyrillic.efontsfeaturesmanyligatures,smallcaps,oldstyleandproportionalliningfigures,su-
perscriptsandsubscripts,ordinalsandsuperiorletters,swashes,alternatesandornaments.Ingeneral,
thefeatures that are supported ina OpenTypefont source are displayed with EddieKohler’s
otfinfo
program(see11foralistoffeaturespresentinOpenTypefonts).Forinstance,forthefontMinionPro
theprogramdisplays:
otfinfo -f MinionPro-Regular.otf
aalt
Access All Alternates
c2sc
Small Capitals From Capitals
case
Case-Sensitive Forms
cpsp
Capital Spacing
dlig
Discretionary Ligatures
dnom
Denominators
fina
Terminal Forms
frac
Fractions
hist
Historical Forms
kern
Kerning
liga
Standard Ligatures
lnum
Lining Figures
numr
Numerators
onum
Oldstyle Figures
ordn
Ordinals
58
ch-psextra1.tex,v:2.24
2007/08/14
21.6 InstallingOpenTypeFontsinLAT
E
X
ornm
Ornaments
pnum
Proportional Figures
salt
Stylistic Alternates
sinf
Scientific Inferiors
size
Optical Size
smcp
Small Capitals
ss01
Stylistic Set 1
ss02
Stylistic Set 2
sups
Superscript
tnum
Tabular Figures
zero
Slashed Zero
ecompleteOpenTypeMinionfontfamilycomesinfivepackages(MinionProwith8fontinstances,
Minion Pro Opticalswith32fontinstances,Minion Pro Condensedwith8fontinstances,Minion Pro
CondensedOpticalswith32fontinstances,MinionStdBlackwithonefontinstance).¹Ratherthangen-
eratingyourselfalltheLAT
E
XsupportfilesforyourMinionProfontfamily,asexplainedintheprevious
sections,youcanusethe“ready-to-run”setupdescribednext.
21.6.3.1 Installingthebasicfontfiles
e MinionPro fonts canbeused with LAT
E
Xwith the help of the
minionpro
package developed by
AchimBlumensath,AndreasBühmannandMichaelZedler(
CTAN:fonts/minionpro
).Inourcase
wehave fourinstancesofMinionPro, which camewith arecentversionofAdobe’sAcrobatReader.²
Asmostpeoplewillhaveaccesstothesefonts,wewilldocumentthesetupforthesefourfontinstances
only(for the other cases, refer to the package documentation). In this case you can download the
file
base-v2.zip
and installthe filesthereinbyunpackingtheziparchiveinto theroot of theT
E
X
treethatcontainstheupdatesorlocalextentionstoyourT
E
Xsystem(e.g.,
/TL2005/texmf-update
,
/TL2005/texmf-local
,or
c:\TL2005\localtexmf
). is will install a whole bunch of
.enc
(encoding),
.fd
(fontdefinition),
.tfm
(T
E
Xfontmetrics), and
.vf
(virtualfont)files.Italsoinstalls
thefontsmap
MinionPro.map
andthepackagefiles
fontaxes.sty
,
MinionPro-FontDef.sty
,
MinionPro.sty
,
mt-MinionPro.cfg
,and
otfontdef.sty
.
InordertousetheOpenTypefontinstanceswithL
A
T
E
Xonallsystemsitiseasiesttotransformthe
font intothePostScript Type1format.Toachievethisthe
minionpro
distributioncomeswithaset of
scripts for performingthis taskonvariousplatforms. Download thefile
scripts.zip
and unpack
it.enrefertothe
README
andfollowitsinstructions.OnLinuxwerunthe
convert-lcdf
script,
whichforourfourfontsamountstothefollowing:
> cfftot1 -b MinionPro-Regular.otf -o MinionPro-Regular.pfb
> t1dotlessj MinionPro-Regular.pfb -o MinionPro-RegularLCDFJ.pfb
andsimilarlyforthefonts
MinionPro-Bold
,
MinionPro-BoldIt
,and
MinionPro-It
.e
cfftot1
program(Section21.4.1.1)generatesaPostScriptType1fontinstancefromthecorrespondingOpen-
Typeone.Itsyntaxfollows.
cfftot1
Usage: cfftot1 [OPTIONS] [FONTFILE [OUTPUTFILE]]
Options:
-a, --pfa
Output PFA font.
¹AvailablefromAdobe’stypeWebsitehttp://store.adobe.com/type/browser/browser_M.html.
²OnLinuxsystemsthefontsforAcrobatReaderareusuallyin/usr/lib/acroread/Resource/Font/,onMicroso
WindowssystemsinC:\Program Files\Adobe\Acrobat 7.0\Resource\Font.
ch-psextra1.tex,v:2.24
2007/08/14
59
21
POSTSCRIPTFONTSANDBEYOND
-b, --pfb
Output PFB font. This is the default.
-n, --name=NAME
Select font NAME from CFF.
-o, --output=FILE
Write output to FILE.
-q, --quiet
Do not generate any error messages.
-h, --help
Print this message and exit.
-v, --version
Print version number and exit.
e
t1dotlessj
programreadsastandardPostScriptType1font(whichdoesnothaveadotless“j”char-
acter)andcreatesanewPostScriptType1fontwithjusta
dotlessj
character,whichisconstructedby
choppingthedotfromthe“j”.All
.pfb
filesthusgeneratedshouldbecopiedtothedirectory
texmf-
local/fonts/type1/adobe/MinionPro
beforeupdatingtheT
E
Xdatabaseanddeclaringthemap
file,asfollows.
[1]> texhash
[2]> updmap --enable Map MinionPro.map
Every glyph in a PostScript Type 1 font, including its name and encoding can le listed bythe
t1testpage
program. Table21.6 displays the layout of theMinionProRegularfont generated with
t1testpage
.
Table21.6:MinionProRegularfontlayout
Documents you may be interested
Documents you may be interested