Difference between revisions of "User:Luigi.scarso/stix"

From Wiki
Jump to navigation Jump to search
Line 32: Line 32:
 
\starttext
 
\starttext
 
   \showmathfontcharacters
 
   \showmathfontcharacters
 +
\stoptext
 +
</texcode>
 +
or, more compact [http://wiki.contextgarden.net/images/5/57/Test1-tex.pdf http://wiki.contextgarden.net/images/5/57/Test1-tex.pdf]
 +
<texcode>
 +
\starttext
 +
\showfont[file:stixgeneral.otf][all]
 
\stoptext
 
\stoptext
 
</texcode>
 
</texcode>

Revision as of 22:34, 28 May 2010

STIX Fonts: a first example

Stix fonts are now out: see http://www.stixfonts.org

I have made a simple pdf from Hans's script below (see http://wiki.contextgarden.net/images/d/d3/Test.pdf)

so we can see them with xpdf (xpdf appears to be broken with pdf from stix's zip)

% this typescript will be in the beta 

\starttypescript [math] [stix] [name]
   \definefontsynonym[MathRoman][file:stixgeneral.otf] [features=math]
\stoptypescript

\starttypescript [serif] [stix] [name] % why 'italic' infull and 'bol' without 'd'?
   \definefontsynonym[Serif]          [file:stixgeneral.otf] [features=default]
   \definefontsynonym[SerifBold]      [file:stixgeneralbol.otf] [features=defaulth]
   \definefontsynonym[SerifItalic]    [file:stixgeneralitalic.otf] [features=default]
   \definefontsynonym[SerifBoldItalic][file:stixgeneralbolita.otf] [features=default]
\stoptypescript

\starttypescript[stix]
   \definetypeface [stix] [rm] [serif] [stix] [default]
   \definetypeface [stix] [mm] [math]  [stix] [default]
\stoptypescript

\usetypescript[stix]
\setupbodyfont[stix]

\usemodule[fnt-25]

\starttext
   \showmathfontcharacters
\stoptext

or, more compact http://wiki.contextgarden.net/images/5/57/Test1-tex.pdf

\starttext
\showfont[file:stixgeneral.otf][all]
\stoptext