Skip to content

Instantly share code, notes, and snippets.

@phi-gamma phi-gamma/test-blank.tex
Last active Dec 15, 2015

Embed
What would you like to do?
ConTeXt MkIV typescript for the Adobe Blank font.
\def\lorem#1{%
\bgroup
\type{#1}\hskip\emwidth
#1
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.\par
\egroup
}
\def\weights{\sans,\italic,\bold,\bolditalic}
\def\fonttest{%
\hairline
\blank[line]
\framed[frame=no,align=middle,width=broad]{Font: Adobe Sans}
\bgroup
\switchtobodyfont[adobeblank]%
\serif \processcommacommand[\weights]\lorem
\sans \processcommacommand[\weights]\lorem
\egroup
\blank[line]
}
\usetypescriptfile [adobeblank]
\usetypescript [adobeblank]
\starttext \fonttest \stoptext
%D \module
%D [ file=type-imp-adobeblank.mkiv,
%D version=2013-04-03 14:18:30+0200,
%D title=\CONTEXT\ Typescript Macros,
%D subtitle=Adobe Blank,
%D author=Philipp Gesang,
%D date=\currentdate,
%D copyright=Philipp Gesang]
%M Announcement:
%M http://blogs.adobe.com/typblography/2013/03/introducing-adobe-blank.html
%M
%M Files in the orginal distribution:
%M · AdobeBlank.otf
%M Available Opentype features: none
\starttypescriptcollection[adobeblank]
\starttypescript [\s!serif,\s!sans] [adobeblank]
\definefontsynonym [AdobeBlank-Regular] [\s!file:adobeblank.otf] [\s!features=\s!default]
\definefontsynonym [AdobeBlank-Italic] [\s!file:adobeblank.otf] [\s!features=\s!default]
\definefontsynonym [AdobeBlank-Bold] [\s!file:adobeblank.otf] [\s!features=\s!default]
\definefontsynonym [AdobeBlank-BoldItalic] [\s!file:adobeblank.otf] [\s!features=\s!default]
\stoptypescript
\starttypescript [\s!serif] [adobeblank] [\s!name]
\setups[\s!font:\s!fallback:\s!serif]
\definefontsynonym [\s!Serif] [AdobeBlank-Regular]
\definefontsynonym [\s!SerifItalic] [AdobeBlank-Italic]
\definefontsynonym [\s!SerifBold] [AdobeBlank-Bold]
\definefontsynonym [\s!SerifBoldItalic] [AdobeBlank-BoldItalic]
\stoptypescript
\starttypescript [\s!sans] [adobeblank] [\s!name]
\setups[\s!font:\s!fallback:\s!sans]
\definefontsynonym [\s!Sans] [AdobeBlank-Regular]
\definefontsynonym [\s!SansItalic] [AdobeBlank-Italic]
\definefontsynonym [\s!SansBold] [AdobeBlank-Bold]
\definefontsynonym [\s!SansBoldItalic] [AdobeBlank-BoldItalic]
\stoptypescript
\starttypescript [adobeblank]
\definetypeface [\typescriptone] [\s!rm] [\s!serif] [\typescriptone] [\s!default]
\definetypeface [\typescriptone] [\s!ss] [\s!sans] [\typescriptone] [\s!default]
% \definetypeface [\typescriptone] [\s!tt] [\s!mono] [modern] [\s!default]
\definetypeface [\typescriptone] [\s!mm] [\s!math] [\typescriptone] [\s!default]
\quittypescriptscanning
\stoptypescript
\stoptypescriptcollection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.