Home
Docs
Install
OpenGLContext
scenegraph
text
OpenGLContext.scenegraph.text.ttfregistry
TTFQuery font registry with a few VRML-specific methods
Classes
class
TTFRegistry
(
Registry
):
Minor specialisation to provide VRML97 fontstyle matching
defaultFont
(
self ,
type = 'SANS' ,
mode = None
)
Attempt to get a default font for the registry
familyMembers
(
self ,
major ,
minor = None
)
Get all (general) fonts for a given family
fontNameFromStyle
(
self ,
fontStyle ,
mode = None
)
Attempt to find font-name matching given fontStyle
returns a font-family name (see fontMembers for method to resolve these to particular font-faces)
modifiersFromStyle
(
self ,
fontStyle ,
mode = None
)
Determine TTF modifiers (weight, italics flag) from fontStyle