\documentclass[14pt]{extarticle}

%
% Demo for Tsukurimashou
% Copyright (C) 2011  Matthew Skala
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, version 3.
%
% As a special exception, if you create a document which uses this font, and
% embed this font or unaltered portions of this font into the document, this
% font does not by itself cause the resulting document to be covered by the
% GNU General Public License. This exception does not however invalidate any
% other reasons why the document might be covered by the GNU General Public
% License. If you modify this font, you may extend this exception to your
% version of the font, but you are not obligated to do so. If you do not
% wish to do so, delete this exception statement from your version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program.  If not, see <http://www.gnu.org/licenses/>.
%
% Matthew Skala
% http://ansuz.sooke.bc.ca/
% mskala@ansuz.sooke.bc.ca
%

\usepackage{fontspec}
\usepackage[margin=1.25in,top=0.85in]{geometry}
\usepackage{wrapfig}
\usepackage{xltxtra}

\usepackage{hyperref}

\defaultfontfeatures{Mapping=tex-text,Path=../otf/}

\setlength{\parindent}{0pt}
\setlength{\parskip}{\baselineskip}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\kaku}{%
  \setmainfont{TsukurimashouKakuPS}}
\newcommand{\maru}{%
  \setmainfont{TsukurimashouMaruPS}}
\newcommand{\mincho}{%
  \setmainfont{TsukurimashouMinchoPS}}
\newcommand{\anbiruteki}{%
  \setmainfont{TsukurimashouAnbirutekiPS}}
\newcommand{\tenshinokami}{%
  \setmainfont{TsukurimashouTenshinoKamiPS}}
\newcommand{\bokukko}{%
  \setmainfont{TsukurimashouBokukkoPS}}

\newcommand{\kakumono}{%
  \setmainfont[WordSpace={1,0,0},PunctuationSpace=3]{TsukurimashouKaku}}
\newcommand{\marumono}{%
  \setmainfont[WordSpace={1,0,0},PunctuationSpace=3]{TsukurimashouMaru}}
\newcommand{\minchomono}{%
  \setmainfont[WordSpace={1,0,0},PunctuationSpace=3]{TsukurimashouMincho}}
\newcommand{\anbirutekimono}{%
  \setmainfont[WordSpace={1,0,0},PunctuationSpace=3]{TsukurimashouAnbiruteki}}
\newcommand{\tenshinokamimono}{%
  \setmainfont[WordSpace={1,0,0},PunctuationSpace=3]{TsukurimashouTenshinoKami}}
\newcommand{\bokukkomono}{%
  \setmainfont[WordSpace={1,0,0},PunctuationSpace=3]{TsukurimashouBokukko}}

\setmonofont{TsukurimashouBokukko}

\newcommand{\iroha}{%
いろはにほへとち~~~~イロハニホヘトチ\\
りぬるをわかよた~~~~リヌルヲワカヨタ\\
れそつねならむう~~~~レソツネナラムウ\\
ゐのおくやまけふ~~~~ヰノオクヤマケフ\\
こえてあさきゆめ~~~~コエテアサキユメ\\
みしゑひもせす。~~~~ミシヱヒモセス。\par
}

\newcommand{\gojuuonzu}{%
わらやまはなたさかあ~~~~ワラヤマハナタサカア\\
ゐり~~みひにちしきい~~~~ヰリ~~ミヒニチシキイ\\
~~るゆむふぬつすくう~~~~~~ルユムフヌツスクウ\\
ゑれ~~めへねてせけえ~~~~ヱレ~~メヘネテセケエ\\
をろよもほのとそこおん~~ヲロヨモホノトソコオン\par
}

\renewcommand{\labelitemi}{{\fontspec[RawFeature=+ornm]{TsukurimashouKaku}C}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
\pagestyle{plain}\thispagestyle{empty}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\kaku
\begin{center}\LARGE

\vspace*{\fill}

{\Huge 作りましょう~０．２}\\
{\huge パラメタほうしきフォントファミリ\\
デモ}

\vspace*{0.75in}

{\Huge Tsukurimashou 0.2}\\
{\huge Parametric Font Family\\
Demo}

\vspace*{1.5in}

Matthew Skala\\
mskala@ansuz.sooke.bc.ca\\
6 April 2011

\vspace*{\fill}

\end{center}
\clearpage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\vspace*{\fill}

Demo for Tsukurimashou\\
Copyright © 2011~~Matthew Skala

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3.

As a special exception, if you create a document which uses this font, and
embed this font or unaltered portions of this font into the document, this
font does not by itself cause the resulting document to be covered by the
GNU General Public License. This exception does not however invalidate any
other reasons why the document might be covered by the GNU General Public
License. If you modify this font, you may extend this exception to your
version of the font, but you are not obligated to do so. If you do not
wish to do so, delete this exception statement from your version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see \url{http://www.gnu.org/licenses/}.

\clearpage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\kaku

\Large
作りましょう~~かく\\
Tsukurimashou Kaku [Square Gothic]

\normalsize

The most popular Japanese text typefaces may be classified into ``Goshikku''
(transliterated from ``Gothic'' and inspired by sans-serif Latin typefaces)
and ``Mincho'' (inspired by Chinese handwriting standards of the Ming
Dynasty, 1368--1644~\textsc{ce}.) Goshikku typefaces are often further
divided into ``Kaku'' (``square,'' referring to the ends of the strokes) and
``Maru'' (``rounded'').  As is common with Goshikku faces, the standard
weight of Tsukurimashou Kaku is a little darker than the standard weight of
the corresponding Mincho face.  Its simple, readable characters form the
core of the Tsukurimashou family, and are then modified to create the other
styles.

\kakumono
\iroha
\gojuuonzu

ＡＢＣＤＥＦＧＨＩＪＫＬＭ~~~~ａｂｃｄｅｆｇｈｉｊｋｌｍ\\
ＮＯＰＱＲＳＴＵＶＷＸＹＺ~~~~ｎｏｐｑｒｓｔｕｖｗｘｙｚ\\
ABCDEFGHIJKLMNOPQRSTUVWXYZ~~~~abcdefghijklmnopqrstuvwxyz

\clearpage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\maru

\Large
作りましょう~~丸\\
Tsukurimashou Maru [Round Gothic]

\normalsize

Tsukurimashou Maru is closely connected to Tsukurimashou Kaku, but its
rounded stroke ends make it somewhat less formal. 
There is also a little more variation in stroke width, inspired by the
``humanist'' category of Latin sans serif typefaces.

\marumono
\iroha
\gojuuonzu

ＡＢＣＤＥＦＧＨＩＪＫＬＭ~~~~ａｂｃｄｅｆｇｈｉｊｋｌｍ\\
ＮＯＰＱＲＳＴＵＶＷＸＹＺ~~~~ｎｏｐｑｒｓｔｕｖｗｘｙｚ\\
ABCDEFGHIJKLMNOPQRSTUVWXYZ~~~~abcdefghijklmnopqrstuvwxyz

\clearpage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\anbiruteki

\Large
作りましょう~~アンビルてき\\
Tsukurimashou Anbiruteki [Anvilicious]

\normalsize

The Web site TV Tropes coined the term ``anvilicious'' to describe any work
of art that attempts to Make a Point (for instance, about politics or
morality) in such a heavy-handed manner that the message overwhelms any
other attribute of the work; it's like dropping an anvil on the viewer.  A
similarly-constructed adjective in Japanese might be rendered as
``Anibiruteki.'' Tsukurimashou Anbiruteki is so heavy that fine details of
the letters are obscured, though they generally remain recognizable in
silhouette.  Punctuation marks are also enlarged until they sometimes
overlap nearby characters.

\anbirutekimono
\iroha
\gojuuonzu

ＡＢＣＤＥＦＧＨＩＪＫＬＭ~~~~ａｂｃｄｅｆｇｈｉｊｋｌｍ\\
ＮＯＰＱＲＳＴＵＶＷＸＹＺ~~~~ｎｏｐｑｒｓｔｕｖｗｘｙｚ\\
ABCDEFGHIJKLMNOPQRSTUVWXYZ~~~~abcdefghijklmnopqrstuvwxyz

\clearpage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\tenshinokami

\Large
作りましょう~~てんしのかみ\\
Tsukurimashou Tenshi no Kami [Angel Hair]

\normalsize

Tsukurimashou Tenshi no Kami reduces the letter forms to fine hairlines.  It
might be most suitably used in large size for display purposes.

\tenshinokamimono
\iroha
\gojuuonzu

ＡＢＣＤＥＦＧＨＩＪＫＬＭ~~~~ａｂｃｄｅｆｇｈｉｊｋｌｍ\\
ＮＯＰＱＲＳＴＵＶＷＸＹＺ~~~~ｎｏｐｑｒｓｔｕｖｗｘｙｚ\\
ABCDEFGHIJKLMNOPQRSTUVWXYZ~~~~abcdefghijklmnopqrstuvwxyz

\clearpage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\bokukko

\Large
作りましょう~~ぼくっこ\\
Tsukurimashou Bokukko [Tomboy]

\normalsize

The slang term ``bokkuko'' could reasonably be glossed ``tomboy,'' but
it refers more specifically to a girl or woman who
uses the traditionally masculine pronoun ``boku'' in her speech.  One often
hears that mannerism from fictional characters and in song lyrics.  It's
typically more a statement of personal aggressiveness than any kind of
transgender identity, though the two may be linked. It is not so common in
real life.  Tsukurimashou Bokkuko originated in an experiment with
Metafont's path expansion features, not meant to be kept, but the results
looked good enough to be worth giving it a name and some further development
work.  The visual style is defined in abstract terms, but resembles
characters written with a chisel-tip felt marker.

\bokukkomono
\iroha
\gojuuonzu

ＡＢＣＤＥＦＧＨＩＪＫＬＭ~~~~ａｂｃｄｅｆｇｈｉｊｋｌｍ\\
ＮＯＰＱＲＳＴＵＶＷＸＹＺ~~~~ｎｏｐｑｒｓｔｕｖｗｘｙｚ\\
ABCDEFGHIJKLMNOPQRSTUVWXYZ~~~~abcdefghijklmnopqrstuvwxyz

\clearpage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\mincho

\Large
作りましょう~~みんちょ\\
Tsukurimashou Mincho [Ming Dynasty]

\normalsize

Mincho type features less abstract forms than Goshikku, closer to the
handwritten roots of the Japanese writing system.  This style is often
treated as equivalent to serif Latin typefaces.  Tsukurimashou Mincho is
somewhat experimental: it draws heavily on the Goshikku face, with just a
few shape modifications.  Mincho character shapes are controlled by a
variable representing the amount of ``minchoviality,'' which is 1 for this
style and 0 for most of the others.  (It is 0.3 for Tsukurimashou Bokukko.)
Further modifications come from adding serifs, and a more complicated
parameterization of whether a given style is more like ``print'' or
``handwriting''; the code actually simulates moving a brush through
four-dimensional space, and different styles convert that movement into two
dimensions via differing linear projections and threshold functions. Since
it is largely based on Tsukurimashou Kaku, Tsukurimashou Mincho has a more
modern and stylized look than would an independently-designed Mincho face
drawn directly from brush strokes.  Accordingly, a Modern style was chosen
for the associated Latin alphabet.

\minchomono
\iroha
\gojuuonzu

ＡＢＣＤＥＦＧＨＩＪＫＬＭ~~~~ａｂｃｄｅｆｇｈｉｊｋｌｍ\\
ＮＯＰＱＲＳＴＵＶＷＸＹＺ~~~~ｎｏｐｑｒｓｔｕｖｗｘｙｚ\\
ABCDEFGHIJKLMNOPQRSTUVWXYZ~~~~abcdefghijklmnopqrstuvwxyz

\clearpage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\kaku

\Large
Special OpenType and Unicode features

\normalsize

This is a quick sample of some of the OpenType features in the font; all of
them should be considered experimental.

Combining sound marks, precomposed and
on-the-fly:  {\kakumono ぎき{\char"3099}~~ぱは{\char"309A}%
~~ゴコ{\char"3099}~~プフ{\char"309A}}\\
Can you spot the difference?

へんなひらがなを作れます：~~{\kakumono ら{\char"3099}め{\char"309A}%
え{\char"309A}ぬ{\char"3099}}。\\
カタカナも：~~{\kakumono ユ{\char"309A}ン{\char"3099}モ{\char"3099}リ%
{\char"309A}}。

{\fontspec[Letters=SmallCaps]{TsukurimashouKakuPS}
Optical small caps are available via the appropriate OpenType feature and
Adobe's deprecated PUA encoding.
}

{\fontspec[RawFeature=+ornm]{TsukurimashouKakuPS}
Tomoe ornaments: \Large A B C D E F G H
}

げんじもん：{\Large 󱟁󱟆󱟓󱟢}

I Ching: {\Large ䷂䷉䷙䷓}

{\fontspec[StylisticSet=1,StylisticSet=2]{TsukurimashouKakuPS}
Stylistic substitutions (heavy metal umlaut, enclosed chars):\\
 (1) Motörhead\\
 ((2)) Mötley Crüe\\
 \{3\} Mormoñ Tabärnacle Choïr}

{\fontspec[StylisticSet=2]{TsukurimashouKakuPS}
More enclosed chars: (A) (b) (シ) [D] <E>}

{\fontspec[Fractions=Alternate]{TsukurimashouKaku}
Fractions 1/2~~3/4~~１／２~~３／４~~12/34~~123/45~~9876/4321\\
フラクショ~~~~4/769~~8123/6~~93/401~~1001/11
}

\end{document}
