The Asian Journal of TX, Volume 4, No. 1, June 2010 Article revision 2010/6/12 KTS TH KORAN TX SOCITY SINC 2007 Fontspec: X TX Fontspec: Wing of X TX * Juho Lee latex.juho@gmail.com KYWORDS ABSTRACT X TX, fontspec, font format, Advanced Typography, OpenType, TrueType, OpenType layout features, glyph substituion, glyph variant Fontspec X TX fontspec X TX-ko 1 2005 X TX 1 TFM (TX font metric) X TX ko.tx 1.tfm.tfm.vf,.map,.fd X TX X TX X TX Cambria (bold italic small captial) \font\cambria="cambria/bi:+smcp" at 10pt \Cambria Cambria Bold Italic Fonts C B I F Plain TX X TX LATX \emph, \bfseries, \textbf \Large, \small * X TX-ko 1. X TX X LATX TX LATX Copyright 2010 by the Korean TX Society
32 TH ASIAN JOURNAL OF TX (Will Robertson) fontspec X TX( X LATX) fontspec 1.1 (Werner Lemberg) [21] (character) (glyph) Characters are entities which have a semantic meaning. Visual presentation forms of characters are called glyphs. A character can be represented by more than a single glyph just think of an italic A and a sans-serif A. [3], [4], [18] [26] a 가, M 가 Palationo Italic a, Palatino Bold a a 1.2 (bitmap) (outline) (scalable) 3 (Bézier) 2 B- ( spline) (PostScript) (Adobe) 3
VOLUM 4, NO. 1, JUN 2010 33 1 (Type 1) 1 (hinting) 256 (Microsoft).pfm 1 (metric).pfb 1 (de facto standard) 3, 0, 2, 3 (Type 3) 1 256 2 0 (Type 0) 1 3 256 0 1 3 2 (composite) 0 CID-keyed OCF (original composite font) CID-keyed CID-keyed OCF 2 (CID; character identifier) CMAP (character map) CFF/ 2 (Type 2) 2 2 1 charstring CFF (compact font format) CFF/ 2 1 Yannis Haralambous [18] CFF/ 2 (ne plus ultra) 42 (Type 42) 42 42 1 3 (Multiple Master) 1 (MM) ( ) (weight), (width), (optical size; ) (interpolation) A
34 TH ASIAN JOURNAL OF TX A A A B A instance C 1. 10, 80, 30 B 20, 40, 60 A B 15, 60, 45 C C instance ( 1 ) [23] 2004 50 (TrueType) (Apple) OS (TrueImage) 2 B- (contour) 1 3 2.ttf.ttf.ttc 2 OS GX Mac OS X AAT (Apple Advanced Typography) (TrueType Open) CFF (OpenType) 2. TTSDK BRAKTTC.ttc.ttf
VOLUM 4, NO. 1, JUN 2010 35 CFF.otf.ttf.otf CFF 1.ttf ATM (Adobe Type Manager) 98 ATM OS 9 ATM 2000, XP Mac OS X 1 1 ATM 1 3 1 ([3], [4], [8], [9], [11], [12], [14], [15], [23], [27]) 1.3 AAT: AAT Mac OS X 3. 1 2,048 1 1,000
36 TH ASIAN JOURNAL OF TX W A s s s s s s 2. 65,536 4 ( 2 ) (ligature) f+i, f+l (advanced) GSUB (glyph substitution data) GPOS (glyph positioning data) GSUB FeatureList LookupList (lookup) liga smcp onum cswh (contextual swash) 5 4. 64,145 64,450 Code2000 63,546 5. http://www.microsoft.com/ typography/otspec/featuretags.htm
VOLUM 4, NO. 1, JUN 2010 37 Z 3. Z AAT AAT GX GX QuickDraw GX AAT Mac OS X AAT (Herman Zapf) Z 3 Z ( ) f Z+a+p+f+i+n+o Z ( ) Z 1.4 X TX X TX AAT \fontspec Renderer=AAT Renderer=ICU AAT Mac OS X ICU (International Components for Unicode) ICU X TX GSUB, GPOS X TX Renderer=AAT ( ICU) X TX AAT Renderer=AAT Renderer=ICU
38 TH ASIAN JOURNAL OF TX AAT ICU, Mac OS X (Hiragino) Mac OS X AAT ICU 2 fontspec fontspec fontspec > texdoc fontspec 2.1 Fontspec \usepackage[ ]{fontspec} math fontspec Computer Modern (CM) ( lim n sin θ cos π x 0 ) 1 n x 2 dx + 1 k(k + 1) lim, sin, cos \mathrm (roman, main) ( Palatino) x,, CM mathpazo, mathptmx, concmath, mathdesign, unicode-math CM fontspec euler fontspec fontspec % mathptmx \documentclass{article} \usepackage{mathptmx} \usepackage{fontspec} k=1 \begin{document} \[\lim_{n \rightarrow \infty}\left(\sin\theta -\cos\pi\int_0^x\frac{1}{x^2}\,dx +\sum_{k=1}^n \frac{1}{k(k+1)}\right)\] \end{document} lim n ( x sinθ cosπ 0 ) n 1 x 2 dx + 1 k=1 k(k + 1)
VOLUM 4, NO. 1, JUN 2010 39 no-math \mathrm, \mathsf, \mathtt, \setboldmathrm CM \setmainfot Myriad Pro % math \documentclass{article} \usepackage[math]{fontspec} % \setmainfont{myriad Pro} \begin{document} \[\lim_{n \rightarrow \infty}\left(\sin\theta -\cos\pi\int_0^x\frac{1}{x^2}\,dx +\sum_{k=1}^n \frac{1}{k(k+1)}\right)\] \end{document} ( lim n sin θ cos π % no-math \documentclass{article} \usepackage[no-math]{fontspec} \setmainfont{myriad Pro} x 0 1 n x 2 dx + k=1 ) 1 k(k + 1) \begin{document} \[\lim_{n \rightarrow \infty}\left(\sin\theta -\cos\pi\int_0^x\frac{1}{x^2}\,dx +\sum_{k=1}^n \frac{1}{k(k+1)}\right)\]\end{document} ( ) lim n sin θ cos π x 0 1 n x 2 dx + k=1 1 k(k + 1) config fontspec.cfg TDS (TX Directory Structure) fontspec TDS fontspec.cfg > kpsewhich fontspec.cfg no-config fontspec.cfg silent fontspec.log quiet.log Fontspec xunicode xltxtra
40 TH ASIAN JOURNAL OF TX 2.2 2.2.1 1932 (Stanely Morrison) The Times Times New Roman 6 16 (Claude Garmond) Garamond Minion Pro Myriad Pro Regualr \fontspec{minionpro-regular} Adobe Minion Pro \newline \fontspec{minion Pro} Adobe Minion Pro \newline \fontspec{myriadpro-regular} Adobe Myriad Pro \newline \fontspec{myriad Pro} Adobe Myriad Pro Adobe Minion Pro Adobe Minion Pro Adobe Myriad Pro Adobe Myriad Pro \fontspec X TX-ko \hangulfontspec \hangulfontspec{unbatang} \newline \hangulfontspec{ } \newline \hangulfontspec{ } \newline \hangulfontspec{08 L} 08 L 은바탕 은바탕 함초롬바탕 08 서울남산체 L 2.2.2 \hangulfontspec[% BoldFont=aritaB.ttf]{aritaL.ttf} L \newline \textbf{ B} \newline \hangulfontspec{hgrgl.ttf} 아리따 L 아리따 B 한겨레결체 6. Times New Roman Times Old Roman Times New Roman
VOLUM 4, NO. 1, JUN 2010 41 4. \fontspec[% BoldFont = MinionPro-Semibold.otf, ItalicFont = MinionPro-It.otf, BoldItalicFont = MinionPro-SemiboldIt.otf] {MinionPro-Regular.otf} Adobe Minion Pro \newline \textbf{adobe Minion Pro} \newline \textit{adobe Minion Pro} Adobe Minion Pro Adobe Minion Pro Adobe Minion Pro Times New Roman times.ttf, timesbd.ttf, timesi.ttf, timesbi.ttf (*) times *bd timesbd \fontspec[xtension =.ttf, BoldFont = *bd, ItalicFont = *i, BoldItalicFont = *bi] {times} Times New Roman \newline \textbf{times New Roman} \newline \textit{times New Roman} \newline \textbf{\textit{times New Roman}} 2.2.3 Times New Roman Times New Roman Times New Roman Times New Roman Mac OS X.ttf.otf FONTVIW 4
42 TH ASIAN JOURNAL OF TX 5. FONT PROPRTIS XTNSIONS [ ] [ ] Regular \fontspec{minion Pro} Adobe Minion Pro MinionPro-Regular 7 FONT PROPRTIS XTNSIONS.ttf.otf [ ] [Names] 5 MinionPro-Regular.otf FONTVIW MinionPro-Regualr Minion Pro NXUSFONT 8 ( 6 ) Mac OS X (FONT BOOK) [ ]-[ 7. http://www.microsoft.com/typography/freetoolsoverview.mspx 8. http://xiles.net/programs
VOLUM 4, NO. 1, JUN 2010 43 6. NXUSFONT ] command( )+I 7 PostScript name Full name FONTMATRIX 9 Mac OS X pdf ( 8 ) 2.3 2.3.1 Roman (main), Sans Serif, Mono-spaced \setmainfont \setromanfont \setmainfont[ ]{ ( ) } \setsansfont[ ]{ } \setmonofont[ ]{ ( ) } 9. http://fontmatrix.net
44 TH ASIAN JOURNAL OF TX 7. OS X FONT BOOK 8. FONTMATRIX
VOLUM 4, NO. 1, JUN 2010 45 X TX-ko \setmainhangulfont[ ]{ } \setsanshangulfont[ ]{ } \setmonohangulfont[ ]{ } X TX-ko \setmainhanjafont[ ]{ } \setsanshanjafont[ ]{ } \setmonohanjafont[ ]{ } 2.3.2 \newfontfamily \newfontface \newfontfamily \newfontface \textbf, \emph \newfontfamily\mygentlefamily[% Mapping=tex-text]{Tekton Pro} \MyGentleFamily Tekton Pro: \\ Regular \textbf{bold} \textit{italic} \textbf{\textit{bold Italic}} \newfontface\myfunny[% Mapping=tex-text]{Harrington} \MyFunny Pros \& Cons of Hitchhikng Tekton Pro: Regular Bold Italic Bold Italic Pros & Cons of Hitchhikng X TX-ko \newhangulfontfamily \newhangulfontface \newhangulfontfamily\hamchorom{ } \Hamchorom \\ \textbf{ } \\ \newhangulfontface\bluebird{- L} \Bluebird 지금눈나리고 매화향기홀로아득하니 내여기가난한노래의씨를뿌려라 2.3.3 \defaultfontfeatures \addfontfeature(s) \HL \newcommand\hl[2][darkred]{\textcolor{#1}{#2}}
46 TH ASIAN JOURNAL OF TX 1. Size Size s x s x x x y x s < y x y y s < y y z s = z z \defaultfontfeatures{mapping=tex-text} \fontspec{nueva Std} Ausl\HL{\"a}nder\HL{---}Pâté \\ expos\hl[teal]{é} \quad ros\hl{\ e} \\ \HL[Teal]{Ø}re \quad \HL{\O}re \quad \HL[Teal]{Pâté} \quad \HL{P\^at\ e} Ausländer Pâté exposé rosé Øre Øre Pâté Pâté \fontspec{arno Pro} Das ist Bleistift.\\ \addfontfeatures{ligatures=rare} Das i\hl{st} Blei\HL{st}i\HL[Teal]{ft}.\\ \addfontfeatures{letters=smallcaps} D\HL[Teal]{as ist} B\HL[Teal]{leistift}. Das ist Bleisti. Das ist Bleisti. D B. 2.3.4 Stockholm Std, Quill Std, AT Uncial Std MyGirl BoldFont, ItalicFont, BoldItalicFont, SlantedFont, BoldSlantedFont, SmallCapsFont \newfontfamily\mygirl[% BoldFont=AT Uncial Std, ItalicFont=Quill Std] Ground Control to Major Tom {Stockholm Std} \MyGirl Ground Control to \textit{major} \textbf{tom} \set{main/sans/mono}font, \{hangul}fontspec, \new{hangul}fontfamily 2.3.5 SizeFeatures Size s 1
VOLUM 4, NO. 1, JUN 2010 47 \fontspec[sizefeatures={% {Size={-9}, Font={Helvetica Neue}, Color=DarkRed}, {Size={9-12},Color=DimGray}, {Size={12-14}, Font={Trajan Pro}, Color=Olive}, {Size={14-}, Font={Nueva Std}, Color=Navy}}]{Gentium} {\footnotesize To die,} \\ {\normalsize to sleep---} \\ {\large To sleep,} \\ {\LARG perchance to dream.} \par \raggedleft ---The soliloquy of \emph{hamlet} 3 To die, to sleep To sleep, perchance to dream. The soliloquy of Hamlet 3.1 Color fontspec 0066FF 00 FF 16 RGB fontspec xcolor dvipsnames, svgnames, x11names color 00 FF RGB (transparency) 00 FF \fontspec{cronos Pro Bold} {\addfontfeature{color=3333cc88}k} \kern-.9ex\lower.15em\hbox{% {\addfontfeature{color=000088}t}} \kern-.8ex\lower-.15em\hbox{% {\addfontfeature{color=99cc3388}u}} \kern-.85ex {\addfontfeature{color=190ff88}g} KT U G X TX XDVIPDFMX Mac OS X XDV2PDF > xelatex -output-driver="xdv2pdf" filename.tex Opacity 0( ) 1( ) \fontspec{cronos Pro Bold} {\addfontfeature{color=navy, Opacity=.5}K} \kern-.9ex\lower.15em\hbox{% {\addfontfeature{color=crimson, Opacity=.5}T}} \kern-.8ex\lower-.15em\hbox{% {\addfontfeature{color=olive, Opacity=.6}U}} \kern-.85ex {\addfontfeature{color=skyblue, Opacity=.6}G} KT U G
48 TH ASIAN JOURNAL OF TX 3.2 Scale Scale 0.5 50 1.2 120 Scale MatchLowercase MatchUppercase (lowercase) (uppercase) \newcommand\sampletexttwo{it is a \textsf{roaring} silence.} \drawfontframe{% \setsansfont[color=darkred] {Helvetica Neue}\sampletexttwo} \drawfontframe{% \setsansfont[scale=matchuppercase,color=darkred] {Helvetica Neue}\sampletexttwo} \drawfontframe{% \setsansfont[scale=matchlowercase,color=darkred] {Helvetica Neue}\sampletexttwo} \drawfontframe{% \setsansfont[scale=.7,color=darkred] {Helvetica Neue}\sampletexttwo} It is a roaring silence. It is a roaring silence. It is a roaring silence. It is a roaring silence. \drawfontframe layouts (reference point) \newcommand\sampletextone{ \textsf{ } } \setsanshangulfont[scale=matchuppercase, Color=Teal]{ }\sampletextone \setsanshangulfont[scale=matchlowercase, Color=Teal]{ }\sampletextone \setsanshangulfont[scale=.7, Color=Teal]{ }\sampletextone 소리없는 소리없는 소리없는 3.3 (interword space) WordSpace WordSpace={x,y,z} x y z WordSpace={x} WordSpace={x,x,x} TX \spaceskip
VOLUM 4, NO. 1, JUN 2010 49 \fontspec[wordspace=3.0]{adobe Garamond Pro} Allman Brothers Band \\ \addfontfeatures{wordspace={1.0,1.5,2.0}} Allman Brothers Band \\ \addfontfeatures{wordspace={.5,.3,.7}} Allman Brothers Band Allman Brothers Band Allman Brothers Band Allman Brothers Band (kerning) (tracking) LetterSpace x LetterSpace=x x ( 100 ) 10 LetterSpace=1.0 10pt 1.0 100 = 0.1pt \fontspec{gentium} \addfontfeature{letterspace=0.0} STAIRWAY TO HAVN \\ \addfontfeature{letterspace=5.0} STAIRWAY TO HAVN STAIRWAY TO HAVN STAIRWAY TO HAVN X TX-ko interhchar ( ) X TX-ko \hangulfontspec[interhchar=-.1em]{ } \\ \hangulfontspec[interhchar=0em]{ } \\ \hangulfontspec[interhchar=.2em]{ } 며느리밥풀꽃에대한보고서 며느리밥풀꽃에대한보고서 며느리밥풀꽃에대한보고서 3.4 ( ) ( )
50 TH ASIAN JOURNAL OF TX 2. (caption) 6 8 (regular) 9 13 (subhead) 14 24 (display) 25 72 (poster) 72 \hangulfontspec{ OTF} \\ \hangulfontspec[fakeslant=0.2]{ OTF} \\ \hangulfontspec[fakestretch=.8]{ OTF} \\ \hangulfontspec[fakestretch=1.2]{ OTF} \\ \hangulfontspec[fakebold=1.5]{ OTF} AutoFakeBold AutoFakeSlant fontspec \fontspec[autofakeslant=.2, AutoFakeBold=1.8]{Stockholm Std} Used to say I like Chopin\\ \textbf{love me now and again} \\ \textit{rainy days never say goodbye} \\ \textbf{\textit{to desire when we are together}} Used to say I like Chopin Love me now and again Rainy days never say goodbye To desire when we are together 3.5 (9 13 ) 25 7 2 X TX Brioso Pro \footnotesize BriosoPro-Capt.otf, \normalsize BriosoPro-Regular.otf, \LARG BriosoPro-Subh.otf, \Huge BriosoPro-Disp.otf
VOLUM 4, NO. 1, JUN 2010 51 \fontspec{brioso Pro} {\footnotesize Ziggy Stardust} \\ {\normalsize Ziggy Stardust} \\ {\LARG Ziggy Stardust} \\ {\Huge Ziggy Stardust} Zi gy Stardust Zi gy Stardust Zi gy Stardust Zi gy Stardust OpticlaSize=0 \fontspec[opticalsize=0]{briosopro-capt} Canzona (There will be time) \\ \fontspec[opticalsize=0]{briosopro-regular} Canzona (There will be time) \\ \fontspec[opticalsize=0]{briosopro-subh} Canzona (There will be time) \\ \fontspec[opticalsize=0]{briosopro-disp} Canzona (There will be time) Canzona ( ere wi l be time) Canzona ( ere wi l be time) Canzona ( ere wi l be time) Canzona ( ere wi l be time) \fontspec{cronospro-capt.otf} I shot the Sheriff \\ \fontspec{cronospro-regular.otf} I shot the Sheriff \\ \fontspec{cronospro-subh.otf} I shot the Sheriff \\ \fontspec{cronospro-disp.otf} I shot the Sheriff I shot the Sheriff I shot the Sheriff I shot the Sheriff I shot the Sheriff 4 ICU AAT Fontspec 4.1 ICU 4.1.1 Numbers (OldStyle/ Lowercase) (Lining/ Uppercase), (Proportional) (Monospaced) O o (SlashedZero)
52 TH ASIAN JOURNAL OF TX \newfontface\oldpropfigure[numbers={oldstyle,proportional}]{arno Pro} \newfontface\liningprofigure[numbers={lining,proportional}]{arno Pro} \newfontface\oldmonofigure[numbers={oldstyle,monospaced}]{arno Pro} \newfontface\liningmonofigure[numbers={lining,monospaced}]{arno Pro} \newfontface\slashedzerofigure[numbers={slashedzero}]{arno Pro} \begin{tabularx}{.95\textwidth} {>{\hsize=.4\hsize}x >{\hsize=.3\hsize}x>{\hsize=.3\hsize}x} \toprule & & \tabularnewline \midrule & \Large\OldPropFigure 0123456789 & \Large\LiningProFigure 0123456789 \tabularnewline & \Large\OldMonoFigure 0123456789 & \Large\LiningMonoFigure 0123456789 \tabularnewline 0 & --- & \Large\SlashedZeroFigure 0 \tabularnewline \bottomrule \end{tabularx} 0123456789 0 \XeTeXuseglyphmetrics=0 \OldPropFigure % \multido{\i=0+1}{10}{\fbox{\i}} \OldMonoFigure % \multido{\i=0+1}{10}{\fbox{\i}} OldStyle Linging, Proportional Monospaced Numbers={OldStyle, Lining} ( Lining) \newcommand\sampletextthree{% Let me know your home address till 4 o clock to send the gift.\\ Me? My home address is, zip code 235-819, KTUG Street 746.} \fontspec[numbers=lining]{minion Pro} \sampletextthree \\ \fontspec[numbers=oldstyle]{minion Pro} \sampletextthree Let me know your home address till 4 o clock to send the gi. Me? My home address is, zip code 235-819, KTUG Street 746. Let me know your home address till 4 o clock to send the gi. Me? My home address is, zip code 235-819, KTUG Street 746.
VOLUM 4, NO. 1, JUN 2010 53 4.1.2 ( ) Ligatures (Common), (Rare/ Discretionary), (Contextual) (TeX), 10 (Historic), (Required) 11 Common, Contextual, Required No NoCommon, NoContextual, NoRequired \fontspec[ligatures=nocommon]{arno Pro} office flower fjord often \\ \fontspec[ligatures=common]{arno Pro} o\hl{ffi}ce \HL{fl}ower \HL{fj}ord o\hl{ft}en \\ \addfontfeatures{ligatures=rare} introdu\hl{ct}ion \HL{st}udent \fontspec{junicode} I II III IV <1> [2] [[3]] \\ \addfontfeatures{ligatures=rare} I II III IV <1> [2] [[3]] \\ \addfontfeatures{ligatures=historic} A\HL{ttr}ibution \HL{an}d \HL{st}ru\HL{gg}le \fontspec[ligatures=nocommon]{linux Libertine O} Quest uomo wurtzite \\ \fontspec[ligatures={common,rare}] {Linux Libertine O} \HL{Qu}est uomo wur\hl{tz}ite \\ \addfontfeatures{ligatures=historic} Di\HL[Teal]{st}ri\HL[Teal]{ct} No.\,9 \\ Liberta per Que\HL{st} Uomo office flower fjord often office ower ord o en introdu ion student I II III IV <1> [2] [[3]] I Ⅱ Ⅲ Ⅳ ❶ 2 ⓷ Attribution d stru le Quest uomo wurtzite est uomo wur ite Distri No. 9 Liberta per est Uomo X TX-ko \hangulfontspec{adobe Std} \\ \hangulfontspec[ligatures=discretionary] {Adobe Std} \disablehangulspacingandlinebreak (Robert Bringhurst) [16] f+f+f+l Sauerstoffflasche (oxygen bottle; ) Sauerstoffflaschenspüller (oxygen bottle washer; ) ( 9 ) 4.1.3 10. Ligatures=TeX Mapping=tex-text 11. Required
54 TH ASIAN JOURNAL OF TX Sauer o.asche Sauer o.aschenjpüller 9. Hoefler & Frere-Jones Requiem 60 70 \fontspec{warnock Pro} The Phantom of the Opera is there. \\ \fontspec[letters=smallcaps]{warnock Pro} The Phantom of the Opera is there. \\ \fontspec[letters=uppercasesmallcaps] {Warnock Pro} The Phantom of the Opera is there. e Phantom of the Opera is there. TH PHANTOM OF TH OPRA IS THR. The Phantom of the Opera is there. \fontspec[letters=smallcaps]{brioso Pro} Old and Wise (true) \\ \fontspec{brioso Pro} O\scalebox{.7}{LD AND} W\scalebox{.7}{IS} (faux) OLD AND WIS (TRU) OLD AND WIS (faux) \fontspec{minion Pro} Leroy Jethro Gibbs is a fictional character from the NCIS television series by CBS Television. Watch the TV tonight P.M. 10:00. \addfontfeature{numbers=oldstyle} \textsc{leroy Jethro Gibbs} is a fictional character from the \textsc{ncis} television series by \textsc{cbs} Television. Watch the \textsc{tv} tonight \textsc{p.m.} 10:00. Leroy Jethro Gibbs is a ctional character from the NCIS television series by CBS Television. Watch the TV tonight P.M. 10:00. LROY JTHRO GIBBS is a ctional character from the NCIS television series by CBS Television. Watch the TV tonight P.M. 10:00. 4.1.4
VOLUM 4, NO. 1, JUN 2010 55 Fontspec Kerning=Uppcase A V, T y \fontspec[kerning=on]{minion Pro} Aviation Typography \addfontfeature{kerning=off} Aviation Typography \fontspec[letters=smallcaps]{warnock Pro} Aviation Typography \addfontfeature{kerning=off} Aviation Typography \fontspec{myriad Pro} AVIATION TYPOGRAPHY \addfontfeature{kerning=uppercase} AVIATION TYPOGRAPHY Aviation Typography Aviation Typography AVIATION TYPOGRAPHY AVIATION TYPOGRAPHY AVIATION TYPOGRAPHY AVIATION TYPOGRAPHY 4.1.5 fontspec \fontspec \fontspec RawFeature liga RawFeature=+liga Ligatures=Common fontspec Ligatures Numbers Contextuals, Stylistic Set, Character Variants, Alternates, Annotation, Style X TX fontspec (Fontspec 10 )
56 TH ASIAN JOURNAL OF TX \fontspec{warnock Pro} \itshape Premiata Forneria Marconi \addfontfeature{contextuals=swash} Premiata Forneria Marconi; \\ P.F.M is a famous band. Premiata Forneria Marconi i i c i; P.F.M is f s b. \multido{\i=0+1}{5}{% \fontspec[alternate=\i] {Civilite MJ Std} e \quad} e Alternate 0 Dirty dancing t a n \multido{\i=0+1}{10}{% \fontspec[alternate=\i, Color=NavyBlue] {Zapfino xtra LT Pro} Dirty dancing \quad} Dirty dancing D Dir ci Dir y ci Dir y a ci g Dir y ancing Dir y ancing aalt Alternate RawFeature Annotation \multido{\i=0+1}{15}{% \fontspec[rawfeature={+aalt=\i}] {Adobe Std} 1234 } \multido{\i=0+1}{12}{% \fontspec[annotation=\i] {Adobe Std} 1234 }
VOLUM 4, NO. 1, JUN 2010 57 \fontspec{arno Pro} 1/2 \quad 1/4 \quad 5/6 \quad 13579/24680 \\ \addfontfeature{fractions=on} 1/2 \quad 1/4 \quad 5/6 \quad 13579/24680 1/2 1/4 5/6 13579/24680 \fontspec[verticalposition=scientificinferior]{brioso Pro} H2O vs. CO2 \\ \fontspec[verticalposition=ordinal]{brioso Pro} 21st Time H₂O vs. CO₂ 21st time 4.1.6 X TX-ko \vertical \VertTypeHangul 25 \newfontfamily\verttypehangul[mapping=tex-text, Script=Hangul, Language=Korean,Vertical=RotatedGlyphs]{ } \begin{vertical}{\verttypehangul}{.25\textheight} \begin{center} {\large } \\ \end{center} \small \\ \\ \\ \\ \\ \bigskip... ( )... \\ \\ \\ \end{vertical} 리고 바 바 리 리 리 리 리 리 리 리 리 리 리 리
58 TH ASIAN JOURNAL OF TX ( ) ( ) ( ) \disablekoreanfonts X TX-ko \setmainhanjafont (Chinese Simplified) \hanjacjksymbols CJK Code2000.ttf \chinese X TX-ko X TX-ko \japanese (Chinese Traditional) ( ) ( ) ( ) ( ) ( ) \newcommand\chinsampletext{% {\centering{\large 湖心亭看雪 }\par{\large 张岱 }\par} 崇祯五年十二月 余住西湖 大雪三日 湖中人鸟声俱绝 是日更定矣 余挐一小舟 拥毳衣炉火 独往湖心亭看雪 雾凇沆砀 天与云与山与水 上下一白 湖上影子 惟长堤一痕 湖心亭一点 与余舟一芥 舟中人两三粒而已 到亭上 有两人铺毡对坐 一童子烧酒 炉正沸 见余 大喜曰 湖中焉得更有此人! 拉余同饮 余强饮三大白而别 问其姓氏 是金陵人 客此 及下船 舟子喃喃曰 莫说相公痴 更有痴似相公者 } \disablekoreanfonts \hanjacjksymbols \fontspec[script=cjk,language=chinese Simplified]{Adobe Kaiti Std} \chinese \ChinSampleText \newfontfamily\chinfontone[% Script=CJK, Language=Chinese Traditional, Vertical=RotatedGlyphs] {FZShouJinShu-S10T} \begin{vertical}{\chinfontone}{.16\textheight} \chinese \ChinSampleText \end{vertical}
VOLUM 4, NO. 1, JUN 2010 59 湖心亭看雪张岱崇祯五年十二月 余住西湖 大雪三日 湖中人鸟声俱绝 是日更定矣 余一小舟 拥毳衣炉火 独往湖心亭看雪 雾凇沆砀 天与云与山与水 上下一白 湖上影子 惟长堤一痕 湖心亭一点 与余舟一芥 舟中人两三粒而已 到亭上 有两人铺毡对坐 一童子烧酒 炉正沸 见余 大喜曰 湖中焉得更有此人! 拉余同饮 余强饮三大白而别 问其姓氏 是金陵人 客此 及下船 舟子喃喃曰 莫说相公痴 更有痴似相公者 \newfontfamily\chinfonttwo[% Script=CJK, Language=Chinese Traditional, Vertical=RotatedGlyphs] {FZXingKai-S04T} \begin{vertical}{\chinfonttwo}{.15\textheight} \ChinSampleText \end{vertical} 湖心亭看雪张岱崇祯五年十二月 余住西湖 大雪三日 湖中人鸟声俱绝 是日更定矣 余一小舟 拥毳衣炉火 独往湖心亭看雪 雾凇沆砀 天与云与山与水 上下一白 湖上影子 惟长堤一痕 湖心亭一点 与余舟一芥 舟中人两三粒而已 到亭上 有两人铺毡对坐 一童子烧酒 炉正沸 见余 大喜曰 湖中焉得更有此人! 拉余同饮 余强饮三大白而别 问其姓氏 是金陵人 客此 及下船 舟子喃喃曰 莫说相公痴 更有痴似相公者 (Homer) (Iliad) Wikipedia Code2000.ttf \newcommand\greeksampletext{% {\bfseries Homer, \emph{iliad} IX 410--16 \\ (translated by Richmond Lattimore)} μήτηρ γάρ τέ μέ φησι θεὰ Θέτις ἀργυρόπεζα \\ διχθαδίας κῆρας φερέμεν θανάτοιο τέλος δέ. \\ εἰ μέν κ ὤλετο μέν μοι νόστος, ἀτὰρ κλέος ἄφθιτον ἔσται \\ εἰ δέ κεν οἴκαδ ὤλετό μοι κλέος ἐσθλόν, ἐπὶ δηρὸν δέ μοι αἰὼν \\ ἔσσεται, οὐδέ κέ μ \bigskip For my mother Thetis the goddess of silver feet tells me \\ I carry two sorts of destiny toward the day of my death. \\ ither, if I stay here and fight beside the city of the Trojans, \\ my return home is gone, but my glory shall be everlasting; \\ but if I return home to the beloved land of my fathers, \\ the excellence of my glory is gone, but there will be a long life \\ left for me, and my end in death will not come to me quickly.} \fontspec[script=greek,language=greek,ligatures={rare,tex,historic}]{junicode} \GreekSampleText
60 TH ASIAN JOURNAL OF TX Homer, Iliad IX 410 16 (translated by Richmond Lattimore) μήτηρ γάρ τέ μέ φησι θεὰ Θέτις ἀργυρόπεζα διχθαδίας κῆρας φερέμεν θανάτοιο τέλος δέ. εἰ μέν κ αὖθι μένων Τρώων πόλιν ἀμφιμάχωμαι, ὤλετο μέν μοι νόστος, ἀτὰρ κλέος ἄφθιτον ἔσται εἰ δέ κεν οἴκαδ ἵκωμι φίλην ἐς πατρίδα γαῖαν, ὤλετό μοι κλέος ἐσθλόν, ἐπὶ δηρὸν δέ μοι αἰὼν ἔσσεται, οὐδέ κέ μ ὦκα τέλος θανάτοιο κιχείη. For my mother Thetis the goddess of silver feet tells me I carry two sorts of destiny toward the day of my death. ither, if I stay here and fight beside the ci of the Trojans, my return home is gone, but my glory shall be everlasting; but if I return home to the beloved land of my fathers, the excellence of my glory is gone, but there will be a long life left for me, and my end in death will not come to me quickly. Fontspec Script Language (language) (script) Script=CJK, Language=Chinese Simlified fontspec 4.2 AAT AAT ICU AAT ICU 4.2.1 ICU Logos, Rebus, Diphthong, Squared, AbbrevSquared, Icelandic 4.2.2 Contextual ICU WordInitial, WordFinal, LineInitial, LineFinal, Inner No fontspec
VOLUM 4, NO. 1, JUN 2010 61 \newfontface\fancy[contextuals={wordinitial,wordfinal}] {HoeflerText-RegularItalic} \fancy where is all the vegemite \fontspec[contextuals=inner] {Hoefler Text} Inner swashes can \emph{sometimes} \\ contain the archaic long~s. where is a# the vegemite Inner ſwa"eſcan ſometimes contain the archaic long s. Variant ICU Alternate Variant 1 ICU Alternate \multido{\i=1+1}{10}{% \fontspec[variant=\i, Color=DarkRed] {Zapfino xtra LT Pro} Dirty dancing \quad} \fontspec[alternate=0] {Hoefler Text Italic} Sphinx Of Black Quartz, {\scshape Judge My Vow} \\ \fontspec[alternate=1] {Hoefler Text Italic} Sphinx Of Black Quartz, {\scshape Judge My Vow} Dirty dancing Dir ci Dir ci Dir y a ci g Dir y ancing Dir y ancing D y Sphinx Of Black Quartz, Judge My Vow Sphinx Of Black Quartz, Judge My Vow Annotation Box, RoundedBox, BlackCircle, Circle, DoubleCircle, BlackRoundSquare, BlackSquare, RomanNumerals, Diamond, Parenthesis, Period \fontspec{hei Regular} 1 2 3 4 5 6 7 8 9 \\ \fontspec[annotation=circle]{hei Regular} 1 2 3 4 5 6 7 8 9 \\ \fontspec[annotation=parenthesis]{hei Regular} 1 2 3 4 5 6 7 8 9 \\ \fontspec[annotation=period]{hei Regular} 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 ⑴ ⑵ ⑶ ⑷ ⑸ ⑹ ⑺ ⑻ ⑼ ⒈ ⒉ ⒊ ⒋ ⒌ ⒍ ⒎ ⒏ ⒐ \fontspec{skia} Normal \fontspec[verticalposition=superior]{skia} Superior \fontspec[verticalposition=inferior]{skia} Inferior \\ \fontspec[verticalposition=ordinal]{skia} 1st 2nd 3rd 4th 0th 8abcde \\ 21st Century Schizoid Man Normal superior inferior 1st 2ⁿd 3rd 4th 0th 8abcde 21st Century Schizoid Man
62 TH ASIAN JOURNAL OF TX \fontspec{hiragino Maru Gothic Pro} 1/2 \quad 1/4 \quad 5/6 \quad 13579/24680 \\ \addfontfeature{fractions=alternate} 1/2 \quad 1/4 \quad 5/6 \quad 13579/24680 4.2.3 AAT \fontspec[weight=0.5,width=3]{skia} Maybe I ll move to Mars \\ \fontspec[weight=1,width=1.0]{skia} Maybe I ll move to Mars \\ \fontspec[weight=2,width=0.5]{skia} Maybe I ll move to Mars Maybe I ll move to Mars Maybe I ll move to Mars Maybe I ll move to Mars 5 5.1 Fontspec TX Computer Modern (CM) Fontspec \mathrm, \mathsf, \mathtt, \setboldmathrm (\setmainfont, \setsansfont, \setmonofont) \mathrm, \mathsf, \mathtt, \setboldmathrm \setmathrm[ ]{ } \setmathsf[ ]{ } \setmathtt[ ]{ } \setboldmathrm[ ]{ } The LATX Font Catalogue 12 mathspec Mathspec fonspec \setmathcal, \setmathbb Digit, Latin, Greek fontspec Numbers={Lining,Proportional}, Scale=MatchLowrcase \exchangeforms, \normalizevarforms, "< >, \"< >", \setminwhitespace mathspec 12. http://www.tug.dk/fontcatalogue/mathfonts.html
VOLUM 4, NO. 1, JUN 2010 63 10. 11. QUARKXPRSS 8.0 5.2 INDSIGN CS ILLUSTRATOR CS 10 ( ) QUARKXPRSS 8.0 11 Mac OS X (CHARACTR VIWR)
64 TH ASIAN JOURNAL OF TX 5.3 ( 12 14 ) CI ko.tx NHN 6 X TX fontspec fontspec X LATX fontspec X TX fontspec LuaTX Fontspec LuaTX X TX X TX XDVIPDFMX Mac OS X XDV2PDF Fontspec X TX-ko fontspec ko.tx X TX-ko ko.tx X TX X TX-ko pdftx ko.tx X TX-ko ko.tx finemath GSUB
VOLUM 4, NO. 1, JUN 2010 65 12. ( ) 13. ( ) 14. ( )
66 TH ASIAN JOURNAL OF TX X TX-ko fontspec X TX-ko X TX X TX-ko.otf.ttf X TX-ko X TX-ko X TX fontspec, X TX-ko 1. Will Robertson and Khaled Hosny, The fontspec Package v2.0b, July 14, 2010. CTAN:macros/ latex/contrib/fontspec/fontspec.pdf Fontspec ICU AAT 2. X TX-ko Version 1.9, 2010. http://ftp.ktug.or.kr/ktug/texlive/ texmf-dist/doc/xelatex/kotex-dev/xetexko/xetexko-doc.pdf X TX fontspec 3. Microsoft Corporation, OpenType specification: OpenType Layout tag registry Feature tags, April 2002. http://www.microsoft.com/typography/otspec/featuretags.htm
VOLUM 4, NO. 1, JUN 2010 67 OpenType layout feature 4. Adobe System Incorporated, OpenType User Guide for Adobe Fonts, October 2008. http: //www.adobe.com/type/browser/pdfs/otguide.pdf fontspec 5. David J.Perry, Creating Scholarly Mulilingual Documents Using Unicode, Opentype, and X TX, June 21, 2009. http://scholarsfonts.net/xetextt.pdf X TX OpenType, fontspec TX TXWORKS 6. Robin Williams, The Non-Designer s Type Book, 2nd d., Pearson ducation Inc., publishing as Peachit Press, 2006. ( 101 2008) Fontspec 7. xoblivoir under X TX, 2010. http://ftp.ktug.or.kr/ktug/texlive/ texmf-dist/doc/latex/kotex-dev/xoblivoir/ultrasimplexob.pdf 8. 2000. 9. 2003. 10. TX: The Asian Journal of TX 1 (2007), no. 1, 3 16. http: //ajt.ktug.kr/2007/0101chof1.pdf 11. Adobe System Incorporated, Adobe Type 1 Font Format, Addison-Wesley Publishing Company, Inc., February 1993. http://partners.adobe.com/public/developer/en/font/t1_ SPC.PDF 12. Adobe System Incorporated, PostScript Language Reference, Third dition, Addison- Wesley Publishing Company, February 1999. http://www.adobe.com/products/ postscript/pdfs/plrm.pdf 13. Adobe System Incorporated, Typography Primer, 2000. http://www.adobe.com/education/ pdf/type_primer.pdf 14. Apple Computer Inc., AAT Font Feature Registry, Apple Inc., 1998. http://developer. apple.com/fonts/registry 15. Apple Computer Inc., Advanced Typography with Mac OS X Tiger: Using and Managing Fonts, October 2004. http://images.apple.com/pro/pdf/l311277a_fonttt_v4.pdf 16. Robert Bringhurst, The lements of Typographic Style, version. 3.1, Hartley & Marks, 2005. 17. Michel Goossens, X TX Companion: TX meets OpenType and Unicode, January 11,2010. http://xml.web.cern.ch/xml/lgc2/xetexmain.pdf 18. Yannis Haralambous, Fonts & ncodings: From Unicode to Advanced Typography and vreything in Between, O Reilly Media, Inc., 2007. 19. Gareth Hughes, Free Unicode fonts: Latin script, August 29, 2009. http://www.garzo.co.uk/ documents/freefonts.pdf
68 TH ASIAN JOURNAL OF TX 20. Jonathan Kew, X TX: the Multilingual Lion TX meets Unicode and smart fonts, in TUG 2005 Conference, Wuhan, China, August 2005. http://www.tug.org/mactex/src/ Demos/XeTeX-showcase/xetex-wuhan.pdf 21. Werner Lemberg, Unicode Support in the CJK Package, The Asian Journal of TX 2 (2008), no. 1, 11 20. http://ajt.ktug.kr/2008/0201lemberg.pdf 22. Andrew Gilbert Moschou, The mathspec package: Font selection for mathematics with X LATX, September 30, 2009. CTAN:macros/xetex/latex/mathspec/mathspec.pdf 23. Thomas W. Phinney, TrueType, PostScript, Type 1 & OpenType: What s the Difference?, Version 2.36, 2004. http://blogs.adobe.com/typblography/tt%20ps%20opentype.pdf 24. Will Robertson, The X TX reference guide, July 12, 2010. CTAN:info/xetexref/ XeTeX-reference.pdf 25. Ilene Strizver, Type Rules!: the designer s guide to professional typography, second edtion, John Wiley & Sons Inc., 2006. ( 2009) 26. Keith Chi-hang Tam, Digital Typography: a primer, 2006. http://www.keithtam.net/ documents/keithtam_digital_type_primer.pdf 27. Jürgen Willrodt, OpenType Status 2009, in DTL FontMaster Conference Type[&]Design 2009, November 2009. http://www.fonttools.org/downloads/td_2009/opentype_ Status_2009.pdf 28. Wikipedia, 2010. http://www.wikipedia.org