mirror of
https://github.com/google/fonts.git
synced 2024-12-19 14:52:12 +03:00
b910265734
Made a couple more grammar/punctuation tweaks
18 lines
1.3 KiB
Markdown
18 lines
1.3 KiB
Markdown
“Fill” (`FILL` in CSS) is an [axis](/glossary/axis_in_variable_fonts) found in some [variable fonts](/glossary/variable_fonts) that can be used to turn transparent forms opaque. (Sometimes the corresponding interior opaque forms become transparent to maintain contrasting shapes.) Transitions often occur from the center, a side, or a corner, but can go in any direction. This can be useful in animation or interaction to convey a state transition. The numbers indicate proportion filled, from 0 (no treatment) to 1 (completely filled).
|
||
|
||
The [Google Fonts CSS v2 API ](https://developers.google.com/fonts/docs/css2) defines the axis as:
|
||
|
||
| Default: | Min: | Max: | Step: |
|
||
| --- | --- | --- | --- |
|
||
| 0 | 0 | 1 | 0.01 |
|
||
|
||
This is currently implemented in Google’s Material icons:
|
||
|
||
<figure>
|
||
|
||
![Two side-by-side icon specimens, each shown with a variable axis represented beneath as an on/off switch. The first specimen, with the switch to the left, shows the icon shapes outlined. The second specimen, with the switch to the right, shows the icon shapes filled with solid color.](images/thumbnail.svg)
|
||
|
||
</figure>
|
||
|
||
In line with the current CSS spec, all custom axes should be referenced in UPPERCASE (only the officially registered variable axes should appear in lowercase). Also, when using the Google Fonts API, the uppercase axes have to appear first in the URL.
|