Introduce text::Shaping enum and replace magic boolean
This commit is contained in:
parent
33b5a90019
commit
4bd290afe7
25 changed files with 203 additions and 132 deletions
|
|
@ -62,7 +62,7 @@ impl text::Renderer for Null {
|
|||
_size: f32,
|
||||
_font: Font,
|
||||
_bounds: Size,
|
||||
_needs_shaping: bool,
|
||||
_shaping: text::Shaping,
|
||||
) -> (f32, f32) {
|
||||
(0.0, 20.0)
|
||||
}
|
||||
|
|
@ -73,9 +73,9 @@ impl text::Renderer for Null {
|
|||
_size: f32,
|
||||
_font: Self::Font,
|
||||
_bounds: Size,
|
||||
_shaping: text::Shaping,
|
||||
_point: Point,
|
||||
_nearest_only: bool,
|
||||
_advanced_shape: bool,
|
||||
) -> Option<text::Hit> {
|
||||
None
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue