Skip to main content

with_global_font_batched

Function with_global_font_batched 

Source
fn with_global_font_batched(
    s: &str,
    step: impl FnMut(&mut VectorFont, &str),
) -> bool
Expand description

内蔵フォント(GLOBAL_VECTOR_FONT)で s を切れ端ごとに step へ渡す。切れ端の間で錠を外し、 kill_checkpoint を呼ぶ。内蔵フォントが無ければ false。

【2026-11-18】get_vector_string_*_family の内蔵フォントへ落ちる経路用(TODO R2 (b))。 GLOBAL_VECTOR_FONT は OS の画面(題名の帯など)の文字描画も取るので、長い文字列を測る間ずっと持つと OS が待たされる。短く区切って持つ。