mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Break text runs by unicode script
This commit is contained in:
parent
062493fac6
commit
371e6897e1
8 changed files with 51 additions and 1 deletions
|
@ -18,6 +18,7 @@ use style::properties::style_structs::Font as FontStyle;
|
|||
use text::Shaper;
|
||||
use text::glyph::{GlyphId, GlyphStore};
|
||||
use text::shaping::ShaperMethods;
|
||||
use unicode_script::Script;
|
||||
use util::cache::HashCache;
|
||||
use util::geometry::Au;
|
||||
|
||||
|
@ -117,6 +118,8 @@ pub struct ShapingOptions {
|
|||
pub letter_spacing: Option<Au>,
|
||||
/// Spacing to add between each word. Corresponds to the CSS 2.1 `word-spacing` property.
|
||||
pub word_spacing: Au,
|
||||
/// The Unicode script property of the characters in this run.
|
||||
pub script: Script,
|
||||
/// Various flags.
|
||||
pub flags: ShapingFlags,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue