Font
Object Hierarchy:
Description:
[ Compact ]
public class Font
Data structure that represents a font.
Content:
Properties:
- public unowned string family { get; }
- public unowned string style { get; }
- public int width { get; }
- public int height { get; }
Static methods:
Methods:
- public int dump (Context context, int start, Color fg, Color bg)
Draws as many glyphs as possible in the clip box of the specified
context.
- public int get_char_width (uint32 c)
Gets the width of a character using the specified font.
- public int get_char_height (uint32 c)
Gets the height of a character using the specified font.
- public int get_text_width (string? text)
Gets the width of a string using the specified font.
- public int get_text_height (string? text)
Gets the height of a string using the specified font.