| |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
Description | |||||||||||||||||||||||||||||||||||
This module defines PangoContexts, an environment that provides information on available fonts, internationalization and output capabilities of the medium. Given such a context, text can be rendered into strings of glyphs (see Graphics.UI.Gtk.Pango.Rendering) or, at a more abstract level, using layouts (see Graphics.UI.Gtk.Pango.Layout).
| |||||||||||||||||||||||||||||||||||
Synopsis | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
Types and Methods for PangoContexts | |||||||||||||||||||||||||||||||||||
data PangoContext | |||||||||||||||||||||||||||||||||||
contextListFamilies :: PangoContext -> IO [FontFamily] | |||||||||||||||||||||||||||||||||||
Retrieve a list of all available font families.
| |||||||||||||||||||||||||||||||||||
contextGetMetrics :: PangoContext -> FontDescription -> Language -> IO FontMetrics | |||||||||||||||||||||||||||||||||||
Query the metrics of the given font implied by the font description. | |||||||||||||||||||||||||||||||||||
contextSetFontDescription :: PangoContext -> FontDescription -> IO () | |||||||||||||||||||||||||||||||||||
Set the default FontDescription of this context. | |||||||||||||||||||||||||||||||||||
contextGetFontDescription :: PangoContext -> IO FontDescription | |||||||||||||||||||||||||||||||||||
Get the current FontDescription of this context. | |||||||||||||||||||||||||||||||||||
data Language | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
emptyLanguage :: Language | |||||||||||||||||||||||||||||||||||
languageFromString :: String -> IO Language | |||||||||||||||||||||||||||||||||||
Specifying no particular language. Take a RFC-3066 format language tag as a string and convert it to a Language type that can be efficiently passed around and compared with other language tags.
| |||||||||||||||||||||||||||||||||||
contextSetLanguage :: PangoContext -> Language -> IO () | |||||||||||||||||||||||||||||||||||
Set the default Language of this context. | |||||||||||||||||||||||||||||||||||
contextGetLanguage :: PangoContext -> IO Language | |||||||||||||||||||||||||||||||||||
Get the current Language of this context. | |||||||||||||||||||||||||||||||||||
contextSetTextDir :: PangoContext -> PangoDirection -> IO () | |||||||||||||||||||||||||||||||||||
Set the default text direction of this context. | |||||||||||||||||||||||||||||||||||
contextGetTextDir :: PangoContext -> IO PangoDirection | |||||||||||||||||||||||||||||||||||
Get the current text direction of this context. | |||||||||||||||||||||||||||||||||||
contextSetTextGravity :: PangoContext -> PangoGravity -> IO () | |||||||||||||||||||||||||||||||||||
Set the text gravity of this context. If the given value is PangoGravityAuto then the gravity is derived from the current rotation matrix. | |||||||||||||||||||||||||||||||||||
contextGetTextGravity :: PangoContext -> IO PangoGravity | |||||||||||||||||||||||||||||||||||
Get the current text gravity of this context. | |||||||||||||||||||||||||||||||||||
contextSetTextGravityHint :: PangoContext -> PangoGravityHint -> IO () | |||||||||||||||||||||||||||||||||||
Set the text gravity hint of this context. | |||||||||||||||||||||||||||||||||||
contextGetTextGravityHint :: PangoContext -> IO PangoGravityHint | |||||||||||||||||||||||||||||||||||
Get the current text gravity of this context. | |||||||||||||||||||||||||||||||||||
contextGetMatrix :: PangoContext -> IO Matrix | |||||||||||||||||||||||||||||||||||
Gets the transformation matrix that will be applied when rendering with this context.
| |||||||||||||||||||||||||||||||||||
contextSetMatrix :: PangoContext -> Matrix -> IO () | |||||||||||||||||||||||||||||||||||
Sets the transformation matrix that will be applied when rendering with this context. Note that any metrics reported by other functions are in user space coordinates before the application of the matrix, not device-space coordinates after the application of the matrix. So, they don't scale with the matrix, though they may change slightly for different matrices, depending on how the text is fit to the pixel grid.
| |||||||||||||||||||||||||||||||||||
Produced by Haddock version 2.6.0 |