Skip to content

Commit e10912a

Browse files
committed
[css-fonts-4] better introduce color font support
1 parent 25591d6 commit e10912a

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

css-fonts-4/Overview.bs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5438,7 +5438,7 @@ at an unspecified time during the animation.
54385438
<h2 id="color-font-support">
54395439
Color Font Support</h2>
54405440

5441-
Color fonts allow for font files to describe
5441+
Color fonts allow for font files to describe,
54425442
not just the contours describing the edges of glyphs,
54435443
but also the colors present inside the glyphs.
54445444

@@ -5447,6 +5447,19 @@ but also the colors present inside the glyphs.
54475447
<figcaption>Multicolore, by Ivan Filipov</figcaption>
54485448
</figure>
54495449

5450+
For some uses, such as emoji,
5451+
having the colors fixed in the font is appropriate.
5452+
For others, there is a need to control the colors used from a stylesheet.
5453+
5454+
CSS provides two ways to do this.
5455+
The 'font-palette' property allows selecting
5456+
one of several different palettes
5457+
contained in the font.
5458+
The ''@font-palette-values'' rule allows overriding
5459+
one or more colors from within a palette
5460+
or even
5461+
the creation of an entirely different palette.
5462+
54505463
<h3 id="font-palette-prop">
54515464
Controlling Color Font Palettes: The 'font-palette' property</h3>
54525465

0 commit comments

Comments
 (0)