wzzc-dev/moui_sun/text does not have a README file
fn FaceGlyphMaskCacheResult::get_placement(self : FaceGlyphMaskCacheResult) -> FaceGlyphMaskPlacementimpl FontLoader for FileFontLoaderfn FileFontLoader::insert(self : FileFontLoader, key : String, source : FontFileSource) -> FontFileSourcefn FileFontLoader::load_font_data(self : FileFontLoader, key : String) -> Result[FontData, FontLoadError]fn FontFace::text_run_outline(self : FontFace, text : String, font_size : Double, origin_x : Double, baseline_y : Double, target_length? : Double) -> TextRunOutlinefn[L : FontLoader] FontFaceCache::get_or_load(self : FontFaceCache, key : String, loader : L) -> Result[FontFace, FontLoadError]fn[L : FontLoader] FontFaceCache::get_or_load_result(self : FontFaceCache, key : String, loader : L) -> Result[FontFaceCacheParseResult, FontLoadError]fn FontFaceCache::get_or_parse(self : FontFaceCache, key : String, data : Bytes) -> Result[FontFace, FontParseError]fn FontFaceCache::get_or_parse_result(self : FontFaceCache, key : String, data : Bytes) -> Result[FontFaceCacheParseResult, FontParseError]pub(all) enum FontLoadError {
MissingFontData(String)
FontFileReadFailed(String, String)
FontParseFailed(String, FontParseError)
} derive(Eq, Debug)fn FontMetrics::new(units_per_em~ : Int, ascent~ : Int, descent~ : Int, line_gap? : Int) -> FontMetricspub(all) enum FontParseError {
UnexpectedEndOfData(Int, Int, Int)
InvalidFontHeader(UInt)
UnsupportedFontIndex(Int)
MissingTable(String)
TableOutOfBounds(String, Int, Int, Int)
TableTooShort(String, Int, Int)
UnsupportedIndexToLocFormat(Int)
MissingHorizontalMetrics
UnsortedLocaOffsets
UnsortedGlyphContourEndpoints
GlyphFlagRepeatOverflow
UnsupportedCmapVersion(Int)
InvalidCmapSegmentCount(Int)
InvalidCmapSegmentRange(Int, Int)
InvalidCmapGroupRange(Int, Int)
} derive(Eq, Debug)fn GlyphAtlasEntry::new(key~ : String, x~ : Int, y~ : Int, width~ : Int, height~ : Int) -> GlyphAtlasEntryfn GlyphMaskAtlas::insert(self : GlyphMaskAtlas, key : String, mask : CoverageMask) -> GlyphAtlasEntry?fn GlyphMaskAtlas::insert_or_clear(self : GlyphMaskAtlas, key : String, mask : CoverageMask) -> GlyphMaskAtlasInsertResult?fn GlyphMaskCache::get_or_rasterize_face_glyph_result(self : GlyphMaskCache, key : String, face : FontFace, glyph_id : Int, scale : Double) -> FaceGlyphMaskCacheResult?fn GlyphPosition::new(glyph_id~ : GlyphId, x_advance? : Int, y_advance? : Int, x_offset? : Int, y_offset? : Int) -> GlyphPositionfn LayoutConfig::new(max_width? : Double, font_size? : Double, line_height? : Double, alignment? : TextAlign, letter_spacing? : Double, word_spacing? : Double) -> LayoutConfigimpl Show for LineBreakClassimpl FontLoader for MemoryFontLoaderfn MemoryFontLoader::load_font_data(self : MemoryFontLoader, key : String) -> Result[FontData, FontLoadError]type Rasterizerfn Rasterizer::draw_line(self : Rasterizer, x0 : Double, y0 : Double, x1 : Double, y1 : Double) -> Unitfn Rasterizer::rasterize_text_face(self : Rasterizer, face : FontFace, text : String, x : Double, y : Double, config : LayoutConfig) -> Unitfn ShapingBuffer::new(text : String, direction? : TextDirection, script? : Script, font_size? : Double) -> ShapingBufferfn TextMaskCache::get_or_render_face(self : TextMaskCache, key : String, face : FontFace, text : String, width : Int, height : Int, x : Double, y : Double, config : LayoutConfig) -> CoverageMaskfn TextMaskCache::get_or_render_face_result(self : TextMaskCache, key : String, face : FontFace, text : String, width : Int, height : Int, x : Double, y : Double, config : LayoutConfig) -> TextMaskCacheRenderResultimpl FontLoader for TextSystemfn TextSystem::caret_at_text_position(self : TextSystem, key : String, text : String, x : Double, y : Double, config : LayoutConfig) -> Result[TextCaret, FontLoadError]fn TextSystem::caret_for_text(self : TextSystem, key : String, text : String, index : Int, config : LayoutConfig) -> Result[TextCaret, FontLoadError]fn TextSystem::get_font_face_result(self : TextSystem, key : String) -> Result[FontFaceCacheParseResult, FontLoadError]fn TextSystem::layout_text(self : TextSystem, key : String, text : String, config : LayoutConfig) -> Result[TextLayout, FontLoadError]fn TextSystem::prepare_layout(self : TextSystem, key : String, text : String, config : LayoutConfig) -> Result[TextSystemLayout, FontLoadError]fn TextSystem::register_font_bytes(self : TextSystem, key : String, data : Bytes, font_index? : Int) -> Result[FontFace, FontParseError]fn TextSystem::register_font_bytes_result(self : TextSystem, key : String, data : Bytes, font_index? : Int) -> Result[TextSystemFontRegistration, FontParseError]fn TextSystem::register_font_data(self : TextSystem, key : String, font_data : FontData) -> Result[FontFace, FontParseError]fn TextSystem::register_font_data_result(self : TextSystem, key : String, font_data : FontData) -> Result[TextSystemFontRegistration, FontParseError]fn TextSystem::register_font_file(self : TextSystem, key : String, path : String, font_index? : Int) -> Result[FontFace, FontLoadError]fn TextSystem::register_font_file_result(self : TextSystem, key : String, path : String, font_index? : Int) -> Result[TextSystemFontRegistration, FontLoadError]fn TextSystem::selection_rects_for_text(self : TextSystem, key : String, text : String, start_index : Int, end_index : Int, config : LayoutConfig) -> Result[Array[TextSelectionRect], FontLoadError]fn TextSystemLayout::caret_at_position(self : TextSystemLayout, x : Double, y : Double) -> TextCaretfn TextSystemLayout::selection_rects(self : TextSystemLayout, start_index : Int, end_index : Int) -> Array[TextSelectionRect]fn grayscale_to_rgba(pixels : FixedArray[Byte], width : Int, height : Int) -> FixedArray[Byte]fn render_text_mask_face(face : FontFace, text : String, width : Int, height : Int, x : Double, y : Double, config : LayoutConfig) -> CoverageMaskInstall
Download zipExperimental MoonBit-native CPU raster stack for MoUI
Dependencies