Skip to content

Commit

Permalink
Make ab_glyph title text default
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Aug 14, 2022
1 parent ef1bcf4 commit cdf781f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
10 changes: 4 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ smithay-client-toolkit = "0.16"
tiny-skia = { version = "0.7.0", features = ["std", "simd"] }
log = "0.4"

crossfont = { version = "0.5.0", features = [
"force_system_fontconfig",
], optional = true }
# Draw title text using ab_glyph `--features ab_glyph
# Draw title text using crossfont `--features crossfont`
crossfont = { version = "0.5.0", features = ["force_system_fontconfig"], optional = true }
# Draw title text using ab_glyph `--features ab_glyph`
ab_glyph = { version = "0.2.15", optional = true }

[features]
# Draw title text using crossfont.
title = ["crossfont"]
default = ["ab_glyph"]
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@
### Dark mode:
![image](https://user-images.githubusercontent.com/20758186/169424673-3b9fa022-f112-4928-8360-305a714ba979.png)

## Title text: crossfont
Enable title text drawn with _crossfont_ crate with feature **title**. This adds a requirement on _freetype_.

```toml
sctk-adwaita = { features = ["title"] }
```

## Title text: ab_glyph
Alternatively title text may be drawn with _ab_glyph_ crate with feature **ab_glyph**. This requires no additional dynamically linked dependencies.
By default title text is drawn with _ab_glyph_ crate. This can be disabled by disabling default features.

## Title text: crossfont
Alternatively title text may be drawn with _crossfont_ crate. This adds a requirement on _freetype_.

```toml
sctk-adwaita = { features = ["ab_glyph"] }
sctk-adwaita = { default-features = false, features = ["crossfont"] }
```

0 comments on commit cdf781f

Please sign in to comment.