Docs: cite the working helpx Character and paragraph styles page and the fonts FAQ (#7975)

This commit is contained in:
datatimp
2026-11-15 18:44:58 -05:00
parent 2ff3c6e506
commit 470be8c845
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -516,9 +516,10 @@ pub(crate) fn style_attrs(d: &Document, para: bool, name: &str) -> Option<Map<St
}
/// The fill of `[Normal Character Style]` in `d`: black, or the fill a redefinition gave it. New
/// type starts in that style ([Character and paragraph styles](https://helpx.adobe.com/illustrator/using/character-paragraph-styles1.html):
/// every character is in it by default), so it takes this fill, not the current fill left from
/// the last shape (#7975).
/// type starts in that style ([Character and paragraph styles](https://helpx.adobe.com/illustrator/using/character-paragraph-styles.html):
/// every character is in it by default; [FAQs on fonts](https://helpx.adobe.com/illustrator/using/fonts-faq.html):
/// new type's defaults are changed by editing it), so it takes this fill, not the current fill
/// left from the last shape (#7975).
pub(crate) fn normal_char_fill(d: &Document) -> vectorcraft_color::Paint {
let normal = Kind::Char.attrs(d, NORMAL_CHAR).unwrap_or_default();
with_attrs(&CharStyle::default(), &normal, "text.create").map_or_else(|_| CharStyle::default().fill, |st| st.fill)
File diff suppressed because one or more lines are too long