MoonBit bindings for Pango text layout and rendering
Dependencies
pub(open) trait IAttrIterator {
fn as_attr_iterator(Self) -> AttrIterator
fn get(Self, AttrType) -> Attribute? = _
fn get_attrs(Self) -> Array[Attribute] = _
fn next(Self) -> Bool = _
fn range(Self) -> (Int, Int) = _
}pub(open) trait IAttrList {
fn as_attr_list(Self) -> AttrList
fn change(Self, Attribute) -> Unit = _
fn equal(Self, AttrList) -> Bool = _
fn get_attributes(Self) -> Array[Attribute] = _
fn get_iterator(Self) -> AttrIterator = _
fn insert(Self, Attribute) -> Unit = _
fn insert_before(Self, Attribute) -> Unit = _
fn ref_(Self) -> AttrList = _
fn splice(Self, AttrList, Int, Int) -> Unit = _
fn to_string(Self) -> String = _
fn update(Self, Int, Int, Int) -> Unit = _
}pub(open) trait IAttribute {
fn as_attribute(Self) -> Attribute
fn as_color(Self) -> AttrColor? = _
fn as_float(Self) -> AttrFloat? = _
fn as_font_desc(Self) -> AttrFontDesc? = _
fn as_font_features(Self) -> AttrFontFeatures? = _
fn as_int(Self) -> AttrInt? = _
fn as_language(Self) -> AttrLanguage? = _
fn as_shape(Self) -> AttrShape? = _
fn as_size(Self) -> AttrSize? = _
fn as_string(Self) -> AttrString? = _
fn equal(Self, Attribute) -> Bool = _
}pub(open) trait IColor {
fn as_color(Self) -> Color
fn parse(Self, String) -> Bool = _
fn parse_with_alpha(Self, String) -> UInt? = _
fn to_string(Self) -> String = _
}pub(open) trait IContext {
fn as_context(Self) -> Context
fn changed(Self) -> Unit = _
fn get_base_dir(Self) -> Direction = _
fn get_base_gravity(Self) -> Gravity = _
fn get_font_description(Self) -> FontDescription? = _
fn get_font_map(Self) -> FontMap? = _
fn get_gravity(Self) -> Gravity = _
fn get_gravity_hint(Self) -> GravityHint = _
fn get_language(Self) -> Language = _
fn get_matrix(Self) -> Matrix? = _
fn get_metrics(Self, FontDescription?, Language?) -> FontMetrics = _
fn get_round_glyph_positions(Self) -> Bool = _
fn get_serial(Self) -> UInt = _
fn list_families(Self) -> Array[FontFamily] = _
fn load_font(Self, FontDescription) -> Font? = _
fn load_fontset(Self, FontDescription, Language) -> Fontset? = _
fn set_base_dir(Self, Direction) -> Unit = _
fn set_base_gravity(Self, Gravity) -> Unit = _
fn set_font_description(Self, FontDescription) -> Unit = _
fn set_font_map(Self, &IFontMap?) -> Unit = _
fn set_gravity_hint(Self, GravityHint) -> Unit = _
fn set_language(Self, Language?) -> Unit = _
fn set_matrix(Self, Matrix?) -> Unit = _
fn set_round_glyph_positions(Self, Bool) -> Unit = _
}pub(open) trait ICoverage {
fn as_coverage(Self) -> Coverage
fn copy(Self) -> Coverage = _
fn get(Self, Int) -> CoverageLevel = _
fn set(Self, Int, CoverageLevel) -> Unit = _
}pub(open) trait IFont {
fn as_font(Self) -> Font
fn describe(Self) -> FontDescription = _
fn describe_with_absolute_size(Self) -> FontDescription = _
fn get_coverage(Self, Language) -> Coverage = _
fn get_face(Self) -> FontFace? = _
fn get_font_map(Self) -> FontMap? = _
fn get_glyph_extents(Self, UInt) -> (Rectangle, Rectangle) = _
fn get_languages(Self) -> Array[Language]? = _
fn get_metrics(Self, Language?) -> FontMetrics = _
fn has_char(Self, UInt) -> Bool = _
fn serialize(Self) -> Bytes = _
}pub(open) trait IFontDescription {
fn as_font_description(Self) -> FontDescription
fn better_match(Self, FontDescription?, FontDescription) -> Bool = _
fn copy_static(Self) -> FontDescription? = _
fn equal(Self, FontDescription) -> Bool = _
fn get_color(Self) -> FontColor = _
fn get_family(Self) -> String? = _
fn get_features(Self) -> String? = _
fn get_gravity(Self) -> Gravity = _
fn get_set_fields(Self) -> FontMask = _
fn get_size(Self) -> Int = _
fn get_size_is_absolute(Self) -> Bool = _
fn get_stretch(Self) -> Stretch = _
fn get_style(Self) -> Style = _
fn get_variant(Self) -> Variant = _
fn get_variations(Self) -> String? = _
fn get_weight(Self) -> Weight = _
fn hash(Self) -> UInt = _
fn merge(Self, FontDescription?, Bool) -> Unit = _
fn merge_static(Self, FontDescription, Bool) -> Unit = _
fn set_absolute_size(Self, Double) -> Unit = _
fn set_color(Self, FontColor) -> Unit = _
fn set_family(Self, String) -> Unit = _
fn set_family_static(Self, String) -> Unit = _
fn set_features(Self, String?) -> Unit = _
fn set_features_static(Self, String) -> Unit = _
fn set_gravity(Self, Gravity) -> Unit = _
fn set_size(Self, Int) -> Unit = _
fn set_stretch(Self, Stretch) -> Unit = _
fn set_style(Self, Style) -> Unit = _
fn set_variant(Self, Variant) -> Unit = _
fn set_variations(Self, String?) -> Unit = _
fn set_variations_static(Self, String) -> Unit = _
fn set_weight(Self, Weight) -> Unit = _
fn to_filename(Self) -> String? = _
fn to_string(Self) -> String = _
fn unset_fields(Self, FontMask) -> Unit = _
}pub(open) trait IFontFace {
fn as_font_face(Self) -> FontFace
fn describe(Self) -> FontDescription = _
fn get_face_name(Self) -> String = _
fn get_family(Self) -> FontFamily = _
fn is_synthesized(Self) -> Bool = _
fn list_sizes(Self) -> Array[Int] = _
}pub(open) trait IFontFamily {
fn as_font_family(Self) -> FontFamily
fn get_face(Self, String?) -> FontFace? = _
fn get_name(Self) -> String = _
fn is_monospace(Self) -> Bool = _
fn is_variable(Self) -> Bool = _
fn list_faces(Self) -> Array[FontFace] = _
}pub(open) trait IFontMap {
fn as_font_map(Self) -> FontMap
fn add_font_file(Self, String) -> Bool raise Error_ = _
fn changed(Self) -> Unit = _
fn create_context(Self) -> Context = _
fn get_family(Self, String) -> FontFamily? = _
fn get_serial(Self) -> UInt = _
fn list_families(Self) -> Array[FontFamily] = _
fn load_font(Self, &IContext, FontDescription) -> Font? = _
fn load_fontset(Self, &IContext, FontDescription, Language) -> Fontset? = _
fn reload_font(Self, &IFont, Double, &IContext?, String?) -> Font = _
}pub(open) trait IFontMetrics {
fn as_font_metrics(Self) -> FontMetrics
fn get_approximate_char_width(Self) -> Int = _
fn get_approximate_digit_width(Self) -> Int = _
fn get_ascent(Self) -> Int = _
fn get_descent(Self) -> Int = _
fn get_height(Self) -> Int = _
fn get_strikethrough_position(Self) -> Int = _
fn get_strikethrough_thickness(Self) -> Int = _
fn get_underline_position(Self) -> Int = _
fn get_underline_thickness(Self) -> Int = _
fn ref_(Self) -> FontMetrics? = _
}pub(open) trait IFontset {
fn as_fontset(Self) -> Fontset
fn get_font(Self, UInt) -> Font = _
fn get_metrics(Self) -> FontMetrics = _
}pub(open) trait IGlyphString {
fn as_glyph_string(Self) -> GlyphString
fn extents(Self, &IFont) -> (Rectangle, Rectangle) = _
fn extents_range(Self, Int, Int, &IFont) -> (Rectangle, Rectangle) = _
fn get_logical_widths(Self, String, Int, Int) -> Array[Int] = _
fn get_width(Self) -> Int = _
fn index_to_x(Self, String, Int, Analysis, Int, Bool) -> Int = _
fn index_to_x_full(Self, String, Int, Analysis, FixedArray[LogAttr]?, Int, Bool) -> Int = _
fn set_size(Self, Int) -> Unit = _
fn x_to_index(Self, String, Int, Analysis, Int) -> (Int, Int) = _
}pub(open) trait IItem {
fn as_item(Self) -> Item
fn apply_attrs(Self, AttrIterator) -> Unit = _
fn get_char_offset(Self) -> Int = _
fn split(Self, Int, Int) -> Item = _
}pub(open) trait ILayout {
fn as_layout(Self) -> Layout
fn context_changed(Self) -> Unit = _
fn copy(Self) -> Layout = _
fn get_alignment(Self) -> Alignment = _
fn get_attributes(Self) -> AttrList? = _
fn get_auto_dir(Self) -> Bool = _
fn get_baseline(Self) -> Int = _
fn get_caret_pos(Self, Int) -> (Rectangle, Rectangle) = _
fn get_character_count(Self) -> Int = _
fn get_context(Self) -> Context = _
fn get_cursor_pos(Self, Int) -> (Rectangle, Rectangle) = _
fn get_direction(Self, Int) -> Direction = _
fn get_ellipsize(Self) -> EllipsizeMode = _
fn get_extents(Self) -> (Rectangle, Rectangle) = _
fn get_font_description(Self) -> FontDescription? = _
fn get_height(Self) -> Int = _
fn get_indent(Self) -> Int = _
fn get_iter(Self) -> LayoutIter = _
fn get_justify(Self) -> Bool = _
fn get_justify_last_line(Self) -> Bool = _
fn get_line(Self, Int) -> LayoutLine? = _
fn get_line_count(Self) -> Int = _
fn get_line_readonly(Self, Int) -> LayoutLine? = _
fn get_line_spacing(Self) -> Float = _
fn get_lines(Self) -> Array[LayoutLine] = _
fn get_lines_readonly(Self) -> Array[LayoutLine] = _
fn get_log_attrs(Self) -> Array[LogAttr] = _
fn get_log_attrs_readonly(Self) -> Array[LogAttr] = _
fn get_pixel_extents(Self) -> (Rectangle, Rectangle) = _
fn get_pixel_size(Self) -> (Int, Int) = _
fn get_serial(Self) -> UInt = _
fn get_single_paragraph_mode(Self) -> Bool = _
fn get_size(Self) -> (Int, Int) = _
fn get_spacing(Self) -> Int = _
fn get_tabs(Self) -> TabArray? = _
fn get_text(Self) -> String = _
fn get_unknown_glyphs_count(Self) -> Int = _
fn get_width(Self) -> Int = _
fn get_wrap(Self) -> WrapMode = _
fn index_to_line_x(Self, Int, Bool) -> (Int, Int) = _
fn index_to_pos(Self, Int) -> Rectangle = _
fn is_ellipsized(Self) -> Bool = _
fn is_wrapped(Self) -> Bool = _
fn move_cursor_visually(Self, Bool, Int, Int, Int) -> (Int, Int) = _
fn serialize(Self, LayoutSerializeFlags) -> Bytes = _
fn set_alignment(Self, Alignment) -> Unit = _
fn set_attributes(Self, AttrList?) -> Unit = _
fn set_auto_dir(Self, Bool) -> Unit = _
fn set_ellipsize(Self, EllipsizeMode) -> Unit = _
fn set_font_description(Self, FontDescription?) -> Unit = _
fn set_height(Self, Int) -> Unit = _
fn set_indent(Self, Int) -> Unit = _
fn set_justify(Self, Bool) -> Unit = _
fn set_justify_last_line(Self, Bool) -> Unit = _
fn set_line_spacing(Self, Float) -> Unit = _
fn set_markup(Self, String, Int) -> Unit = _
fn set_markup_with_accel(Self, String, Int, UInt) -> UInt = _
fn set_single_paragraph_mode(Self, Bool) -> Unit = _
fn set_spacing(Self, Int) -> Unit = _
fn set_tabs(Self, TabArray?) -> Unit = _
fn set_text(Self, String, Int) -> Unit = _
fn set_width(Self, Int) -> Unit = _
fn set_wrap(Self, WrapMode) -> Unit = _
fn write_to_file(Self, LayoutSerializeFlags, String) -> Bool raise Error_ = _
fn xy_to_index(Self, Int, Int) -> (Bool, Int, Int) = _
}pub(open) trait ILayoutIter {
fn as_layout_iter(Self) -> LayoutIter
fn at_last_line(Self) -> Bool = _
fn get_baseline(Self) -> Int = _
fn get_char_extents(Self) -> Rectangle = _
fn get_cluster_extents(Self) -> (Rectangle, Rectangle) = _
fn get_index(Self) -> Int = _
fn get_layout(Self) -> Layout? = _
fn get_layout_extents(Self) -> (Rectangle, Rectangle) = _
fn get_line(Self) -> LayoutLine? = _
fn get_line_extents(Self) -> (Rectangle, Rectangle) = _
fn get_line_readonly(Self) -> LayoutLine? = _
fn get_line_yrange(Self) -> (Int, Int) = _
fn get_run(Self) -> GlyphItem? = _
fn get_run_baseline(Self) -> Int = _
fn get_run_extents(Self) -> (Rectangle, Rectangle) = _
fn get_run_readonly(Self) -> GlyphItem? = _
fn next_char(Self) -> Bool = _
fn next_cluster(Self) -> Bool = _
fn next_line(Self) -> Bool = _
fn next_run(Self) -> Bool = _
}pub(open) trait ILayoutLine {
fn as_layout_line(Self) -> LayoutLine
fn get_extents(Self) -> (Rectangle, Rectangle) = _
fn get_height(Self) -> Int = _
fn get_length(Self) -> Int = _
fn get_pixel_extents(Self) -> (Rectangle, Rectangle) = _
fn get_resolved_direction(Self) -> Direction = _
fn get_start_index(Self) -> Int = _
fn get_x_ranges(Self, Int, Int) -> Array[Int] = _
fn index_to_x(Self, Int, Bool) -> Int = _
fn is_paragraph_start(Self) -> Bool = _
fn ref_(Self) -> LayoutLine? = _
fn x_to_index(Self, Int) -> (Bool, Int, Int) = _
}pub(open) trait IMatrix {
fn as_matrix(Self) -> Matrix
fn concat(Self, Matrix) -> Unit = _
fn get_font_scale_factor(Self) -> Double = _
fn get_font_scale_factors(Self) -> (Double, Double) = _
fn get_slant_ratio(Self) -> Double = _
fn rotate(Self, Double) -> Unit = _
fn scale(Self, Double, Double) -> Unit = _
fn transform_distance(Self, Double, Double) -> (Double, Double) = _
fn transform_pixel_rectangle(Self, Rectangle) -> Unit = _
fn transform_point(Self, Double, Double) -> (Double, Double) = _
fn transform_rectangle(Self, Rectangle) -> Unit = _
fn translate(Self, Double, Double) -> Unit = _
}pub(open) trait IRenderer {
fn as_renderer(Self) -> Renderer
fn activate(Self) -> Unit = _
fn deactivate(Self) -> Unit = _
fn draw_error_underline(Self, Int, Int, Int, Int) -> Unit = _
fn draw_glyph(Self, &IFont, UInt, Double, Double) -> Unit = _
fn draw_glyph_item(Self, String?, GlyphItem, Int, Int) -> Unit = _
fn draw_glyphs(Self, &IFont, GlyphString, Int, Int) -> Unit = _
fn draw_layout(Self, &ILayout, Int, Int) -> Unit = _
fn draw_layout_line(Self, LayoutLine, Int, Int) -> Unit = _
fn draw_rectangle(Self, RenderPart, Int, Int, Int, Int) -> Unit = _
fn draw_trapezoid(Self, RenderPart, Double, Double, Double, Double, Double, Double) -> Unit = _
fn get_alpha(Self, RenderPart) -> UInt = _
fn get_color(Self, RenderPart) -> Color? = _
fn get_layout(Self) -> Layout? = _
fn get_layout_line(Self) -> LayoutLine? = _
fn get_matrix(Self) -> Matrix? = _
fn part_changed(Self, RenderPart) -> Unit = _
fn set_alpha(Self, RenderPart, UInt) -> Unit = _
fn set_color(Self, RenderPart, Color?) -> Unit = _
fn set_matrix(Self, Matrix?) -> Unit = _
}pub(open) trait ITabArray {
fn as_tab_array(Self) -> TabArray
fn get_decimal_point(Self, Int) -> UInt = _
fn get_positions_in_pixels(Self) -> Bool = _
fn get_size(Self) -> Int = _
fn get_tab(Self, Int) -> (TabAlign, Int) = _
fn get_tabs(Self) -> (Array[TabAlign], Array[Int]) = _
fn resize(Self, Int) -> Unit = _
fn set_decimal_point(Self, Int, UInt) -> Unit = _
fn set_positions_in_pixels(Self, Bool) -> Unit = _
fn set_tab(Self, Int, TabAlign, Int) -> Unit = _
fn sort(Self) -> Unit = _
fn to_string(Self) -> String = _
}pub(open) trait VRendererDrawErrorUnderline {
fn draw_error_underline(Self, Renderer, Int, Int, Int, Int) -> Unit
}pub(open) trait VRendererDrawGlyphs {
fn draw_glyphs(Self, Renderer, &IFont, GlyphString, Int, Int) -> Unit
}pub(open) trait VRendererDrawRectangle {
fn draw_rectangle(Self, Renderer, RenderPart, Int, Int, Int, Int) -> Unit
}pub(open) trait VRendererDrawTrapezoid {
fn draw_trapezoid(Self, Renderer, RenderPart, Double, Double, Double, Double, Double, Double) -> Unit
}pub type Analysispub type AttrFloatpub type AttrFontDescpub type AttrFontFeaturesimpl IAttrFontFeatures for AttrFontFeaturespub type AttrIntpub type AttrIteratorpub type AttrLanguageimpl IAttrLanguage for AttrLanguagepub type AttrListpub type AttrShapeimpl IAttrShape for AttrShapepub type AttrSizepub type AttrStringpub(all) enum AttrType {
Invalid
Language
Family
Style
Weight
Variant
Stretch
Size
FontDesc
Foreground
Background
Underline
Strikethrough
Rise
Shape
Scale
Fallback
LetterSpacing
UnderlineColor
StrikethroughColor
AbsoluteSize
Gravity
GravityHint
FontFeatures
ForegroundAlpha
BackgroundAlpha
AllowBreaks
Show
InsertHyphens
Overline
OverlineColor
LineHeight
AbsoluteLineHeight
TextTransform
Word
Sentence
BaselineShift
FontScale
}pub type Attributeimpl IAttribute for Attributepub(all) enum BaselineShift {
None
Superscript
Subscript
}pub type Colorpub type Contextfn Context::get_metrics(self : Context, desc : FontDescription?, language : Language?) -> FontMetricspub type Coveragepub(all) enum CoverageLevel {
None
Fallback
Approximate
Exact
}pub(all) enum Direction {
Ltr
Rtl
TtbLtr
TtbRtl
WeakLtr
WeakRtl
Neutral
}pub type Fontpub type FontDescriptionimpl IFontDescription for FontDescriptionfn FontDescription::better_match(self : FontDescription, old_match : FontDescription?, new_match : FontDescription) -> Boolfn FontDescription::merge(self : FontDescription, desc_to_merge : FontDescription?, replace_existing : Bool) -> Unitfn FontDescription::merge_static(self : FontDescription, desc_to_merge : FontDescription, replace_existing : Bool) -> Unitpub type FontFacepub type FontFamilyimpl IObject for FontFamilyimpl IFontFamily for FontFamilypub type FontMappub struct FontMask {
// private fields
}pub(all) enum FontMaskFlag {
Family
Style
Variant
Weight
Stretch
Size
Gravity
Variations
Features
Color
}pub type FontMetricsimpl IFontMetrics for FontMetricspub(all) enum FontScale {
None
Superscript
Subscript
SmallCaps
}pub type Fontsetpub type GlyphGeometryimpl IGlyphGeometry for GlyphGeometrypub type GlyphInfoimpl IGlyphInfo for GlyphInfo#alias(LayoutRun)
pub type GlyphItemimpl IGlyphItem for GlyphItempub type GlyphItemIterpub type GlyphStringimpl IGlyphString for GlyphStringfn GlyphString::extents_range(self : GlyphString, start : Int, end : Int, font : &IFont) -> (Rectangle, Rectangle)fn GlyphString::get_logical_widths(self : GlyphString, text : String, length : Int, embedding_level : Int) -> Array[Int]fn GlyphString::index_to_x(self : GlyphString, text : String, length : Int, analysis : Analysis, index_ : Int, trailing : Bool) -> Intfn GlyphString::index_to_x_full(self : GlyphString, text : String, length : Int, analysis : Analysis, attrs : FixedArray[LogAttr]?, index_ : Int, trailing : Bool) -> Intfn GlyphString::x_to_index(self : GlyphString, text : String, length : Int, analysis : Analysis, x_pos : Int) -> (Int, Int)pub type GlyphVisAttrimpl IGlyphVisAttr for GlyphVisAttrpub type Itempub type Languagepub type Layoutfn Layout::deserialize(context : &IContext, bytes : Bytes, flags : LayoutDeserializeFlags) -> Layout? raise Error_fn Layout::write_to_file(self : Layout, flags : LayoutSerializeFlags, filename : String) -> Bool raise Error_pub(all) enum LayoutDeserializeFlag {
Default
Context
}pub struct LayoutDeserializeFlags {
// private fields
}fn LayoutDeserializeFlags::LayoutDeserializeFlags(flags : Array[LayoutDeserializeFlag]) -> LayoutDeserializeFlagspub type LayoutIterimpl ILayoutIter for LayoutIterpub type LayoutLineimpl ILayoutLine for LayoutLinepub(all) enum LayoutSerializeFlag {
Default
Context
Output
}pub struct LayoutSerializeFlags {
// private fields
}fn LayoutSerializeFlags::LayoutSerializeFlags(flags : Array[LayoutSerializeFlag]) -> LayoutSerializeFlagspub type LogAttrpub type Matrixpub type Rectangleimpl IRectangle for Rectanglepub(all) enum RenderPart {
Foreground
Background
Underline
Strikethrough
Overline
}pub type Rendererfn Renderer::draw_glyphs(self : Renderer, font : &IFont, glyphs : GlyphString, x : Int, y : Int) -> Unitfn Renderer::draw_rectangle(self : Renderer, part : RenderPart, x : Int, y : Int, width : Int, height : Int) -> Unitfn Renderer::draw_trapezoid(self : Renderer, part : RenderPart, y1_ : Double, x11 : Double, x21 : Double, y2 : Double, x12 : Double, x22 : Double) -> Unitpub(all) enum Script {
InvalidCode
Common
Inherited
Arabic
Armenian
Bengali
Bopomofo
Cherokee
Coptic
Cyrillic
Deseret
Devanagari
Ethiopic
Georgian
Gothic
Greek
Gujarati
Gurmukhi
Han
Hangul
Hebrew
Hiragana
Kannada
Katakana
Khmer
Lao
Latin
Malayalam
Mongolian
Myanmar
Ogham
OldItalic
Oriya
Runic
Sinhala
Syriac
Tamil
Telugu
Thaana
Thai
Tibetan
CanadianAboriginal
Yi
Tagalog
Hanunoo
Buhid
Tagbanwa
Braille
Cypriot
Limbu
Osmanya
Shavian
LinearB
TaiLe
Ugaritic
NewTaiLue
Buginese
Glagolitic
Tifinagh
SylotiNagri
OldPersian
Kharoshthi
Unknown
Balinese
Cuneiform
Phoenician
PhagsPa
Nko
KayahLi
Lepcha
Rejang
Sundanese
Saurashtra
Cham
OlChiki
Vai
Carian
Lycian
Lydian
Batak
Brahmi
Mandaic
Chakma
MeroiticCursive
MeroiticHieroglyphs
Miao
Sharada
SoraSompeng
Takri
BassaVah
CaucasianAlbanian
Duployan
Elbasan
Grantha
Khojki
Khudawadi
LinearA
Mahajani
Manichaean
MendeKikakui
Modi
Mro
Nabataean
OldNorthArabian
OldPermic
PahawhHmong
Palmyrene
PauCinHau
PsalterPahlavi
Siddham
Tirhuta
WarangCiti
Ahom
AnatolianHieroglyphs
Hatran
Multani
OldHungarian
Signwriting
}pub struct ShapeFlags {
// private fields
}pub struct ShowFlags {
// private fields
}pub(all) enum Stretch {
UltraCondensed
ExtraCondensed
Condensed
SemiCondensed
Normal
SemiExpanded
Expanded
ExtraExpanded
UltraExpanded
}pub type TabArraypub(all) enum TextTransform {
None
Lowercase
Uppercase
Capitalize
}pub(all) enum Underline {
None
Single
Double
Low
Error
SingleLine
DoubleLine
ErrorLine
}pub(all) enum Variant {
Normal
SmallCaps
AllSmallCaps
PetiteCaps
AllPetiteCaps
Unicase
TitleCaps
}pub(all) enum Weight {
Thin
Ultralight
Light
Semilight
Book
Normal
Medium
Semibold
Bold
Ultrabold
Heavy
Ultraheavy
}let ANALYSIS_FLAG_CENTERED_BASELINE : Intlet ATTR_INDEX_FROM_TEXT_BEGINNING : UIntfn find_paragraph_boundary(text : String, length : Int) -> (Int, Int)fn itemize(context : &IContext, text : String, start_index : Int, length : Int, attrs : AttrList, cached_iter : AttrIterator?) -> Array[Item]fn quantize_line_geometry(thickness : Int, position : Int) -> (Int, Int)fn shape_full(item_text : String, item_length : Int, paragraph_text : String?, paragraph_length : Int, analysis : Analysis) -> GlyphStringfn shape_item(item : Item, paragraph_text : String?, paragraph_length : Int, log_attrs : FixedArray[LogAttr]?, flags : ShapeFlags) -> GlyphStringfn shape_with_flags(item_text : String, item_length : Int, paragraph_text : String?, paragraph_length : Int, analysis : Analysis, flags : ShapeFlags) -> GlyphStringfn version_check(required_major : Int, required_minor : Int, required_micro : Int) -> String?MoonBit bindings for Pango text layout and rendering
Dependencies