module Tessell::Text

Defined in:

tessell/text/color_glyph.cr
tessell/text/ffi/freetype.cr
tessell/text/ffi/harfbuzz.cr
tessell/text/font_fallback.cr
tessell/text/font_stack.cr
tessell/text/ft_measurer.cr
tessell/text/glyph_atlas.cr
tessell/text/measurer.cr
tessell/text/rasterizer.cr

Class Method Summary

Class Method Detail

def self.reflow_run(advances : Array(Float32), line_height : Float32, max_width : Float32) : Size #

换行重排(issue #56):measure 的断行口径唯一来源——累计 advance, 行非空且超宽即断行;行数 × line_height;结果钳到 max_width。 FtMeasurer#measure 与 CachingMeasurer L2 reflow 共用它,保证两条 路径几何一致。


[View source]