Update Font Awesome 5 to 6

This makes it less likely that new users will get confused and
accidentally use fallback fonts.
This commit is contained in:
Stanislav Ochotnický 2022-12-21 17:06:25 +01:00
parent 23d47656e4
commit c0e0702a6c
5 changed files with 9 additions and 9 deletions

View file

@ -59,9 +59,9 @@ bar:
right:
- clock:
content:
- string: {text: , font: "Font Awesome 5 Free:style=solid:size=12"}
- string: {text: , font: "Font Awesome 6 Free:style=solid:size=12"}
- string: {text: "{date}", right-margin: 5}
- string: {text: , font: "Font Awesome 5 Free:style=solid:size=12"}
- string: {text: , font: "Font Awesome 6 Free:style=solid:size=12"}
- string: {text: "{time}"}
```

View file

@ -38,7 +38,7 @@ For example, to render _backlight_ as " 20%", you could use:
```
content:
- string:
font: Font Awesome 5 Free:style=solid:pixelsize=14
font: Font Awesome 6 Free:style=solid:pixelsize=14
text: 
- string:
font: Adobe Helvetica:pixelsize=12
@ -91,7 +91,7 @@ In these cases, you can define an anchor point, either at top-level,
or in a module's _anchors_ attribute:
```
awesome: &awesome Font Awesome 5 Free:style=solid:pixelsize=14
awesome: &awesome Font Awesome 6 Free:style=solid:pixelsize=14
```

View file

@ -14,8 +14,8 @@ types that are frequently used:
- *font*: this is a comma separated list of fonts in _fontconfig_
format. Example of valid values:
- Font Awesome 5 Brands
- Font Awesome 5 Free:style=solid
- Font Awesome 6 Brands
- Font Awesome 6 Free:style=solid
- Dina:pixelsize=10:slant=italic
- Dina:pixelsize=10:weight=bold
- *color*: an rgba hexstring; _RRGGBBAA_. Examples:

View file

@ -5,8 +5,8 @@
# the sway-xkb module with the xkb module.
# fonts we'll be re-using here and there
awesome: &awesome Font Awesome 5 Free:style=solid:pixelsize=14
awesome_brands: &awesome_brands Font Awesome 5 Brands:pixelsize=16
awesome: &awesome Font Awesome 6 Free:style=solid:pixelsize=14
awesome_brands: &awesome_brands Font Awesome 6 Brands:pixelsize=16
std_underline: &std_underline {underline: { size: 2, color: ff0000ff}}

View file

@ -94,7 +94,7 @@ expose(const struct exposable *exposable, pixman_image_t *pix, int x, int y, int
*
* Finally, if the font's descent is negative, ignore it (except
* for the height calculation). This is unfortunately not based on
* any real facts, but works very well with e.g. the "Awesome 5"
* any real facts, but works very well with e.g. the "Awesome 6"
* font family.
*/
const double baseline = (double)y +