Skip to main content

expand_font_shorthand

Function expand_font_shorthand 

Source
pub(crate) fn expand_font_shorthand(
    specified_values: &mut BTreeMap<String, String>,
)
Expand description

font: [style] [weight] size[/line-height] family-list ショートハンドを font-style/font-weight/font-size/line-height/font-family へ展開する。 簡略化: font-variantsmall-caps 等)と font-stretch は longhand の消費側が 存在しないため読み飛ばす(値としては無視するだけで、パース自体は失敗させない)。 caption/icon/menu/message-box/small-caption/status-bar のシステムフォント キーワードは非対応のため素通りする。対応する longhand が既に指定されていればそちらを 優先する(.entry().or_insert() パターン、他のショートハンド展開関数と同じ方針)。