Specify the Unicode range of the font added by -ah-font-face, and adjust the font size
In Antenna House Formatter V7.3, when specifying an additional font with ‘-ah-font-face’, the ‘unicode-range’ attribute
can be used to specify the Unicode range to which this font is to be applied. The ‘size-adjust’ attribute adjusts this
font size. See also ‘
-ah-font-face’
in the Online Manual for details.
Specify Unicode range for fonts
The ‘unicode-range’ attribute specifies Unicode range to which this font applies.
<!-- Example: specifying two fonts with different unicode-ranges -->
<@font-face font-family="Shakespeare-Normal"
src="url('ILShakeFest.ttf')" />
<@font-face font-family="Shakespeare"
src="url('ILShakeFest.ttf')"
unicode-range="U+0040-0060" />
font-family="Shakespeare-Normal,serif": ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.
font-family="Shakespeare,serif": ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.
Change font size
Japanese characters appear larger than the alphabet because they are about the same size as English uppercase
characters. The font size can be adjusted by ‘size-adjust’ in <-ah-font-face>. Japanese font size can be
reduced by 10-15% to balance the English font size.
<!-- Example: specifying two versions of Source Han Sans,
one with size-adjust for balancing English text -->
<@font-face font-family="MySourceHanSans"
src="url('SourceHanSans-Regular.otf')" />
<@font-face font-family="MySourceHanSans-adjust"
src="url('SourceHanSans-Regular.otf')"
size-adjust="0.85" />
font-family="Arial,MySourceHanSans": 日本語と英語が混在すると、Alphabetが小さく、日本語の文字が大きく見えます。日本語のフォントサイズを10~15%小さくすることで、英字とのバランスを取ることができます。
font-family="Arial,MySourceHanSans-adjust": 日本語を少し小さくすると、日本語とAlphabetの大きさを揃えて見やすくなります。日本語のフォントサイズを10~15%小さくすることで、英字とのバランスを取ることができます。