mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-20 03:35:41 +02:00
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:
parent
23d47656e4
commit
c0e0702a6c
5 changed files with 9 additions and 9 deletions
|
@ -59,9 +59,9 @@ bar:
|
||||||
right:
|
right:
|
||||||
- clock:
|
- clock:
|
||||||
content:
|
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: "{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}"}
|
- string: {text: "{time}"}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ For example, to render _backlight_ as " 20%", you could use:
|
||||||
```
|
```
|
||||||
content:
|
content:
|
||||||
- string:
|
- string:
|
||||||
font: Font Awesome 5 Free:style=solid:pixelsize=14
|
font: Font Awesome 6 Free:style=solid:pixelsize=14
|
||||||
text:
|
text:
|
||||||
- string:
|
- string:
|
||||||
font: Adobe Helvetica:pixelsize=12
|
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:
|
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
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@ types that are frequently used:
|
||||||
|
|
||||||
- *font*: this is a comma separated list of fonts in _fontconfig_
|
- *font*: this is a comma separated list of fonts in _fontconfig_
|
||||||
format. Example of valid values:
|
format. Example of valid values:
|
||||||
- Font Awesome 5 Brands
|
- Font Awesome 6 Brands
|
||||||
- Font Awesome 5 Free:style=solid
|
- Font Awesome 6 Free:style=solid
|
||||||
- Dina:pixelsize=10:slant=italic
|
- Dina:pixelsize=10:slant=italic
|
||||||
- Dina:pixelsize=10:weight=bold
|
- Dina:pixelsize=10:weight=bold
|
||||||
- *color*: an rgba hexstring; _RRGGBBAA_. Examples:
|
- *color*: an rgba hexstring; _RRGGBBAA_. Examples:
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
# the sway-xkb module with the xkb module.
|
# the sway-xkb module with the xkb module.
|
||||||
|
|
||||||
# fonts we'll be re-using here and there
|
# fonts we'll be re-using here and there
|
||||||
awesome: &awesome Font Awesome 5 Free:style=solid:pixelsize=14
|
awesome: &awesome Font Awesome 6 Free:style=solid:pixelsize=14
|
||||||
awesome_brands: &awesome_brands Font Awesome 5 Brands:pixelsize=16
|
awesome_brands: &awesome_brands Font Awesome 6 Brands:pixelsize=16
|
||||||
|
|
||||||
std_underline: &std_underline {underline: { size: 2, color: ff0000ff}}
|
std_underline: &std_underline {underline: { size: 2, color: ff0000ff}}
|
||||||
|
|
||||||
|
|
|
@ -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
|
* Finally, if the font's descent is negative, ignore it (except
|
||||||
* for the height calculation). This is unfortunately not based on
|
* 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.
|
* font family.
|
||||||
*/
|
*/
|
||||||
const double baseline = (double)y +
|
const double baseline = (double)y +
|
||||||
|
|
Loading…
Add table
Reference in a new issue