Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement checking if the font familly exists in pango #455

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix filtering badly
JAicewizard committed Jul 27, 2021

Verified

This commit was signed with the committer’s verified signature. The key has expired.
JAicewizard Jaap Aarts
commit b3d9b856ce1edd1e0cd463dac63a2f546851c045
4 changes: 0 additions & 4 deletions piet-cairo/src/text.rs
Original file line number Diff line number Diff line change
@@ -178,10 +178,6 @@ impl Text for CairoText {
.pango_context
.list_families()
.iter()
.filter(|family| {
family.name().unwrap().contains(family_name)
|| family_name.contains(family.name().unwrap().as_str())
})
.map(|family| {
family
.list_faces()