summaryrefslogtreecommitdiff
path: root/fonts/rit-fonts/doc/font-example.tex
blob: 2539dbbbb389e08247775f9e416151c3062e972c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
\documentclass[a4paper]{article}

\usepackage[paperwidth=100mm,margin=.1mm,ignoreall]{geometry} % prose
%\usepackage[paperwidth=62.5mm,margin=.1mm,ignoreall]{geometry}  % poem
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{graphicx,listings}

\usepackage[path={./fonts/}]{rit-fonts}
\newfontfamily\en[Path={./fonts/},Extension=.ttf]%
  {Linux-Libertine}
  [BoldFont=*-Bold]
\def\thesection{\en\arabic{section}}
\def\thesubsection{\en\thesection.\arabic{subsection}}
\def\f#1{\gdef\thef{\en #1}}
\newfontfamily\lstfont[Scale=.8]{MPLUSCodeLatin}
\usepackage{tcolorbox}

\colorlet{bgcol}{white}
\colorlet{frcol}{black!10}
\def\thetitle{Regular}

\makeatletter
\def\title#1{\def\next{#1}\xdef\thetitle
  {\expandafter\strip@prefix\meaning\next}}
\makeatother

\newtcolorbox{prosebox}{colback=bgcol,width=99.8mm, %.63\linewidth,
    halign title=flush left,
  	before=, after=\par\newpage, 
 % 	before skip=0\baselineskip, after skip=0\baselineskip,
  	colbacktitle={black!10},
  	coltitle=black, 
  	fonttitle=\lstfont\footnotesize, 
  	box align=top,
  	colframe=frcol,
  	title={\thetitle}}

%\addfontfeatures{Scale=2,Color=red,Numbers=Lining}

\def\myprose{പ്രതിരോധരാഷ്ട്രീയവും ആധുനിക കലാപാരമ്പര്യങ്ങളിലെ 
  വിനിമയവൈഭവങ്ങളും തമ്മിലിണക്കി, അവരവരുടെ ദേശീയ കലാസാഹിത്യത്തിന്റെ 
  പരമ്പരാഗത രൂപങ്ങളെ ഭാവുകത്വപരമായി ഉയർത്തി, നീതിയോടു് ആഭിമുഖ്യം വളർത്തി, 
  ഇങ്ങനെ ഒരു പ്രതിസംസ്കാരത്തിന്റെ ജനകീയവും അഗാധവും സമകാലികവും 
  ഭൗതികവുമായ ജാഗ്രത പാകി.}

\def\halfprose{പ്രതിരോധരാഷ്ട്രീയവും ആധുനിക കലാപാരമ്പര്യങ്ങളിലെ 
  വിനിമയവൈഭവങ്ങളും തമ്മിൽ  \dots}

\usepackage[active,luatex,tightpage]{preview}
\renewcommand\PreviewBbAdjust{0pt -5pt 0pt 0pt}
\PreviewEnvironment{prosebox}

  
\begin{document}
\ifluatex\prehyphenchar="0000\else\defaulthyphenchar="0000\fi
\pagestyle{empty}

\parindent0pt
\parskip=1\baselineskip plus 2pt minus 2pt

\hyphenpenalty=0
\lefthyphenmin=3
\righthyphenmin=3
\tolerance=500
\emergencystretch=1em

\title{RIT Rachana Regular}
\begin{prosebox}
\Rachana
\myprose
\end{prosebox}

\title{RIT Panmana Regular}
\begin{prosebox}
\Panmana
\myprose
\end{prosebox}

\title{RIT MeeraNew}
\begin{prosebox}
\Meera
\myprose
\end{prosebox}

\title{RIT TN Joy}
\begin{prosebox}
\Joy
\myprose
\end{prosebox}

\title{\usepackage[ScaleRM=1.5,...]{rit-fonts}}
\begin{prosebox}
  \Rachana
  \addfontfeatures{Scale=1.5}
  \advance\baselineskip 5pt
  \ifluatex\prehyphenchar="0000\else\defaulthyphenchar="0000\fi
\halfprose
\end{prosebox}


\title{\usepackage[Numbers=OldStyle,...]{rit-fonts}}
\begin{prosebox}
  \Rachana \addfontfeatures{Numbers=OldStyle}
  \ifluatex\prehyphenchar="0000\else\defaulthyphenchar="0000\fi രചനയിൽ
  പഴയരീതിയിലുള്ള അക്കങ്ങളുണ്ടു്. 1234567890. ഇവ സാധാ\-രണ അക്കങ്ങളെ അപേക്ഷിച്ചു്
  പാഠവുമായി ഒത്തുപോകുന്നതാണു്.
\end{prosebox}


\end{document}