12.5.7. Font Information

Facilities in this clause require the font-info feature.

(font-property string list
#!key size: name: family-name: weight: posture: structure:
proportionate-width: writing-mode:)

Returns the value of a property in a font resource. The arguments name:, family-name:, weight:, posture:, structure:, or proportionate-width: select the font in the same manner as the corresponding characteristics, with a prefix of font- added, of a character flow object. The size: argument is a length specifying the size of the font, which shall be supplied if the ISO/IEC 9541-1 data type of the value is REL-RATIONAL. string is a string representing a public identifier specifying the name of the property. list is a list, each of whose members is either:

The property value to be returned shall be determined as follows. Initially, the active property-list is the font-resource property-list. Each member of list in turn shall set the active property-list to a property-list nested in the active property-list, as follows:

Finally, the value of the property whose name is string in the active property-list shall be returned.

The optional writing-mode: argument shall have one of the values left-to-right, right-to-left, or top-to-bottom. The value left-to-right is equivalent to prefixing list with the list

("ISO/IEC 9541-1//WRMODES"
 "ISO/IEC 9541-1//WRMODE"
 "ISO/IEC 9541-1//WRMODENAME"
 "ISO/IEC 9541-1//LEFT-TO-RIGHT")
and so on for the other allowed values.

The object returned shall depend on the data type of the value of the property as defined in ISO/IEC 9541-1:

Other types of values shall cause an error to be signaled.