Commit 41b1c0f
Fix SkOrderedFontMgr::onMatchFamily
SkOrderedFontMgr's `matchFamily` currently has [a bug](https://issues.skia.org/issues/382016481) where it will only look in the first FontMgr in its list when searching for fonts. The problem is that its search loop is expecting a `null` response to signal "no matches", but the actual behavior of FontMgr is to never return null. Instead it will return a zero-length SkFontStyleSet.
This PR adds a `count() > 0` check to the return value rather than just checking whether it is non-null.
This is an imported pull request from
#193
Added the author to the list of Skia AUTHORS
GitOrigin-RevId: 736a0e3
Change-Id: I6e0f9a6fe5a5d7e6a45567bc0f83ed27024cb584
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/926716
Commit-Queue: Julia Lavrova <[email protected]>
Reviewed-by: Ben Wagner <[email protected]>
Reviewed-by: Julia Lavrova <[email protected]>1 parent b972f48 commit 41b1c0f
2 files changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
88 | 98 | | |
89 | 99 | | |
90 | 100 | | |
| |||
104 | 114 | | |
105 | 115 | | |
106 | 116 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| |||
0 commit comments