22.12.2013 Views

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The ideal solution would be to have a name that uniquely identifies each<br />

collection of font data. This name does not exist in current practice for font data.<br />

Fonts with the same face name can vary over a number of descriptors. Some of<br />

these descriptors, such as different complements of glyphs in the font, may be<br />

insignificant if the needed glyphs are in the font. Other descriptors, such as different<br />

width metrics, make fonts with the same name incompatible. It does not<br />

seem possible to define a rule that will always identify incompatibilities, but will<br />

not prevent the use of a perfectly suitable local copy of the font data with a given<br />

name. Therefore, only the range of ISO 10646 characters will be used to qualify<br />

matches for the font face name.<br />

Since a prime goal of the font face name in the font definition is to allow a user<br />

agent to determine when there is a local copy of the specified font data, the font<br />

face name must be a name that will be in all legitimate copies of the font data.<br />

Otherwise, unnecessary Web traffic may be generated due to missed matches<br />

for the local copy.<br />

15.4.3 Coordinate units on the em square<br />

Certain values, such as width metrics, are expressed in units that are relative to<br />

an abstract square whose height is the intended distance between lines of type in<br />

the same type size. This square is called the em square and it is the design grid<br />

on which the glyph outlines are defined. The value of this descriptor specifies<br />

how many units the EM square is divided into. Common values are for example<br />

250 (Intellifont), 1000 (Type 1) and 2048 (TrueType, TrueType GX and Open-<br />

Type).<br />

If this value is not specified, it becomes impossible to know what any font<br />

metrics mean. For example, one font has lowercase glyphs of height 450;<br />

another has smaller ones of height 890! The numbers are actually fractions; the<br />

first font has 450/1000 and the second has 890/2048 which is indeed smaller.<br />

15.4.4 Central Baseline<br />

This gives the position in the em square [p. 227] of the central baseline. The<br />

central baseline is used by ideographic scripts for alignment, just as the bottom<br />

baseline is used for Latin, Greek, and Cyrillic scripts.<br />

15.4.5 Font Encoding<br />

Either explicitly or implicitly, each font has a table associated with it, the font<br />

encoding table, that tells what character each glyph represents. This table is also<br />

referred to as an encoding vector.<br />

In fact, many fonts contain several glyphs for the same character. Which of<br />

those glyphs should be used depends either on the rules of the language, or on<br />

the preference of the designer.<br />

In Arabic, for example, all letters have four (or two) different shapes, depending<br />

on whether the letter is used at the start of a word, in the middle, at the end,<br />

or in isolation. It is the same character in all cases, and thus there is only one<br />

character in the source document, but when printed, it looks different each time.<br />

227

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!