This repository has been archived by the owner on Aug 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tcsourcehans.sty
50 lines (42 loc) · 1.69 KB
/
tcsourcehans.sty
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
% tcsourcehans.sty
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{tcsourcehans}[2014/08/21 v0.2 Source Han Sans JP]
%%<+>\SourceHanSansScale
\providecommand*{\SourceHanSansScale}{0.924690}
\@onlypreamble\tcqgg@sp \let\tcqgg@sp\@empty
\edef\tcqgg@sc{\SourceHanSansScale}
\def\tcqgg@fam{sourcehans}
\def\tcqgg@cmapH{UniSourceHanSansJP-UTF16-H}
\def\tcqgg@cmapV{UniSourceHanSansJP-UTF16-V}
\def\tcqgg@fon#1{SourceHanSansJP-#1.otf}
\@onlypreamble\tcqgg@process
\def\tcqgg@process#1#2#3{%
\g@addto@macro\tcqgg@sp{%
\special{pdf:mapline r-\tcqgg@fam-#2-jy2 \tcqgg@cmapH\space\tcqgg@fon{#3}}%
\special{pdf:mapline r-\tcqgg@fam-#2-jy2x \tcqgg@cmapH\space\tcqgg@fon{#3}}%
\special{pdf:mapline r-\tcqgg@fam-#2-jt2 \tcqgg@cmapV\space\tcqgg@fon{#3}}%
}%
%
\DeclareFontShape{JY2}{\tcqgg@fam}{#1}{n}{<->s*[\tcqgg@sc]\tcqgg@fam-#2-jy2}{}%
\DeclareFontShape{JY2}{\tcqgg@fam}{#1}{it}{<->ssub*\tcqgg@fam/#1/n}{}%
\DeclareFontShape{JY2}{\tcqgg@fam}{#1}{sl}{<->ssub*\tcqgg@fam/#1/n}{}%
\DeclareFontShape{JY2}{\tcqgg@fam}{#1}{sc}{<->ssub*\tcqgg@fam/#1/n}{}%
%
\DeclareFontShape{JT2}{\tcqgg@fam}{#1}{n}{<->s*[\tcqgg@sc]\tcqgg@fam-#2-jt2}{}%
\DeclareFontShape{JT2}{\tcqgg@fam}{#1}{it}{<->ssub*\tcqgg@fam/#1/n}{}%
\DeclareFontShape{JT2}{\tcqgg@fam}{#1}{sl}{<->ssub*\tcqgg@fam/#1/n}{}%
\DeclareFontShape{JT2}{\tcqgg@fam}{#1}{sc}{<->ssub*\tcqgg@fam/#1/n}{}%
}
\DeclareFontFamily{JY2}{\tcqgg@fam}{}
\DeclareFontFamily{JT2}{\tcqgg@fam}{}
\tcqgg@process{el}{j}{ExtraLight}
\tcqgg@process{l}{l}{Light}
\tcqgg@process{m}{r}{Normal}
\tcqgg@process{mb}{m}{Regular}
\tcqgg@process{db}{d}{Medium}
\tcqgg@process{b}{b}{Bold}
\tcqgg@process{bx}{b}{Bold}
\tcqgg@process{eb}{h}{Heavy}
\AtBeginDvi{\tcqgg@sp}
\endinput
% EOF