1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//! Text drawn with the fonts on the device rather than the style's.
//!
//! Text that the device's fonts shape ([`FontFace::system`]) is shaped a
//! piece at a time: each piece the clusters, a character and the marks and
//! joiners after it, that the [`FontChooser`] chose one face for.
//!
//! A character that glyph PBFs could draw takes its glyph from local fonts,
//! one at a time, when the style has no `glyphs` URL and the device's fonts
//! don't shape it, when the stack's PBF lacks it, or, if
//! [`LocalGlyphs::ideographs`] is set, first when it is a CJK ideograph,
//! kana or hangul. Local glyphs come from the style's fallback font faces
//! first, then the face the [`FontChooser`] chooses, then the
//! [`LocalGlyphRasterizer`].
//!
//! [`FontFace::system`]: crate::text::glyph::FontFace::system
use Arc;
use crateFontStack;
use crate;
/// Chooses which of the device's fonts draws a cluster: a character and the
/// marks and joiners after it ([`i18n::extends_previous`]). A choice may
/// block on the platform's font matcher and read font files, so the glyph
/// store calls it on its thread pool, never on the render thread.
///
/// [`i18n::extends_previous`]: mln_style::i18n::extends_previous
/// Draws a character's glyph at once, without a font file, as the browser's
/// canvas does. It doesn't shape.
/// How a renderer draws glyphs from local fonts. The default draws none,
/// so that a map draws the same everywhere.