TextRenderingProcess
From Apache OpenOffice Wiki
Contents
Text Rendering in OpenOffice.org consists of these steps:
The application layers
- decide which font to use and which font attributes to apply
- measure text in this font
- determine where to put this text item
- requests the graphic layer to display the text item
The platform independent part of the graphics system layer
- converts the application layer's font request into a device specific font request
- converts the application coordinates to device coordinates
- requests the service of a typographic layout engine to layout the text item
- adjusts the layouted text item to the requested needs of the application
- draws the typographically layouted text item to the system device
- adds text decorations like underlines, emphasis marks, etc.
The platform dependent part of the graphics system layer
- extracts system specific details of the typography related information and abstracts them for the system independent layer
- provides the services of the system's typographic layout engine to the system independent layer
- extends the services of the system's typographic layout engine to the minimum requirements of the system independent layer
- provides the services of system specific font subsetting/embedding
- draws the typographic layout on the target device