Structsยง
Constantsยง
Functionsยง
- parse_
font_ ๐face_ descriptors - Given the various font face descriptors, construct the equivalent
@font-facecss rule as a string and parse it usingstylecrate. ReturnsErr(Error::Syntax)if parsing fails. - serialize_
parsed_ ๐descriptors - Converts the descriptors of a
@font-facerule (as defined by stylo) to the the IDLFontFaceDescriptorsdictionary used by the JS interface.