Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

21 Mapping text formats to HTML/XML > 21.7 Mapping fonts > 21.7.3 Mapping font sizes


21.7.3 Mapping font sizes

For CSS, Mif2Go shows the font size just as it is in FrameMaker. For HTML itself, Mif2Go must convert point size to an HTML size number, 2 through 7. To modify the way Mif2Go 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 Mif2Go converts from points to HTML size numbers, regardless of any other settings. Also see §21.5.2 Overriding paragraph alignment and size properties.

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



21 Mapping text formats to HTML/XML > 21.7 Mapping fonts > 21.7.3 Mapping font sizes