*** empty log message ***
[m17n/m17n-db.git] / FORMATS / FontSize.txt
1 /* Copyright (C) 2003, 2004
2      National Institute of Advanced Industrial Science and Technology (AIST)
3      Registration Number H15PRO112
4    See the end for copying conditions.  */
5
6 /***
7
8 @page mdbFontSize Font Size
9
10 @section font-size-description DESCRIPTION
11
12 In some case, a font contains incorrect information about its size
13 (typically in the case of a hacked TrueType font), which results in a
14 bad text layout when such a font is used in combination with the other
15 fonts.  To overcome this problem, the m17n library loads information
16 about font-size adjustment from the m17n database by the tags \<font,
17 resize\>.  The data is loaded as a plist of this format.
18
19 @verbatim
20 FONT-SIZE-ADJUSTMENT ::= PER-FONT *
21
22 PER-FONT ::= '(' FONT-SPEC ADJUST-RATIO ')'
23
24 FONT-SPEC ::=
25     '(' [ FOUNDRY FAMILY
26           [ WEIGHT [ STYLE [ STRETCH [ ADSTYLE ]]]]]
27         REGISTRY ')'
28
29 ADJUST-RATIO ::= INTEGER
30 @endverbatim
31
32 @c FONT-SPEC is to specify properties of a font.  @c FOUNDRY to @c
33 REGISTRY are symbols corresponding to #Mfoundry to #Mregistry property
34 of a font.  See @ref m17nFont for the meaning of each property.
35
36 @c ADJUST-RATIO is an integer number specifying by percentage how much
37 the font-size must be adjusted.  For instance, this @c PER-FONT:
38
39 @verbatim
40     ((devanagari-cdac) 150)
41 @endverbatim
42
43 instructs the font handler of the m17n library to open a font of 1.5
44 times bigger than a requested size on opening a font whose registry
45 is "devanagari-cdac".
46 */
47
48 /* 
49 Copyright (C) 2003, 2004
50   National Institute of Advanced Industrial Science and Technology (AIST)
51   Registration Number H15PRO112
52
53 This file is part of the m17n database; a sub-part of the m17n
54 library.
55
56 The m17n library is free software; you can redistribute it and/or
57 modify it under the terms of the GNU Lesser General Public License
58 as published by the Free Software Foundation; either version 2.1 of
59 the License, or (at your option) any later version.
60
61 The m17n library is distributed in the hope that it will be useful,
62 but WITHOUT ANY WARRANTY; without even the implied warranty of
63 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
64 Lesser General Public License for more details.
65
66 You should have received a copy of the GNU Lesser General Public
67 License along with the m17n library; if not, write to the Free
68 Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
69 Boston, MA 02110-1301, USA.
70 */