#### 30.6.2 Mapping font sizes

For CSS, DITA2Go shows the font size just as it is defined for the format. For HTML itself, DITA2Go must convert point size to an HTML size number, 2 through 7. To modify the way DITA2Go maps the size, you can replace all or part of this table:

    [FontSizes]
    ; HTML font size = pt size it starts with for default usage
    ; for example, if 3=10 and 4=14, 12pt type becomes size=3
    ; computed size is overridden by [HTMLParaStyles] or [HTMLCharStyles] ; SizeN setting
    2 = 8
    3 = 10
    4 = 14
    5 = 20
    6 = 28
    7 = 36

The number on the right side of the equals sign is the largest point size to be rendered as the HTML size number on the left. In the example above, 8-pt and smaller is size 2, 9-pt and 10-pt are size 3, and so on. To make 10-pt text appear as size 4, you would lower the limit for size 3; for example, 3=9. If the size 4 font is too large and heavy, try changing 4=14 to 4=15. That makes <font size="3"> for 14-point text, by raising the start of the size 4 range to 15-point text.

The [FontSizes] settings determine how DITA2Go converts from points to HTML size numbers, regardless of any other settings. Also see §30.4.2 Overriding paragraph alignment and size properties.

To change CSS entries from points to other size units, see §31.8.2 Specifying CSS size values and units of measurement.

Previous Topic: 30.6.1 Specifying a default font and size

Next Topic: 30.6.3 Including or excluding font tags

Parent Topic: 30.6 Mapping fonts

Sibling Topics:

30.6.1 Specifying a default font and size

30.6.3 Including or excluding font tags

30.6.4 Excluding face and size attributes from font tags

30.6.5 Accommodating browser font-rendering differences

Table of Contents • Index