mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-12 08:51:00 -06:00
Part of #394: each run hyphenates in its own language; Default Language sets new type's
Squashed from #2818 onto main.
This commit is contained in:
@@ -143,8 +143,11 @@ pub struct CharStyle {
|
||||
pub no_break: bool,
|
||||
/// Language (Character panel): the BCP 47 tag of one of [`crate::setup::LANGUAGES`] these
|
||||
/// characters are shaped in, so that the font uses that language's forms (OpenType `locl`).
|
||||
/// `None`: the default language, English: USA, shaped without a language. New type takes the
|
||||
/// document's language (Document Setup). Saved only when set.
|
||||
/// `None`: the default language, English: USA, shaped without a language, which is what text
|
||||
/// saved without one reads as. A tag the list doesn't have, from a file, is kept and has no
|
||||
/// hyphenation. New type takes the document's language (Document Setup), else the default
|
||||
/// language of Preferences › Hyphenation. Saved only when set. Each run hyphenates in its own
|
||||
/// language (`vectorcraft_text::hyphen`).
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub language: Option<String>,
|
||||
/// Another glyph of the font for the run's first character (Glyphs panel › Show › Alternates
|
||||
|
||||
Reference in New Issue
Block a user