Commit 2ec25ac
committed
Fix installed-font skip logic: use exact match + exclude known families from prefix scan
The previous prefix-only StartsWith check falsely marked fonts as installed
when a different font family shared the same prefix (e.g., 'Roboto Condensed'
installed would incorrectly skip 'Roboto').
Now uses a two-step approach:
1. Exact HashSet.Contains check (primary - O(1))
2. Prefix fallback that excludes matches which are themselves known Google
Font family names, preventing cross-family false positives1 parent 2011e0e commit 2ec25ac
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
119 | | - | |
120 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
121 | 133 | | |
122 | 134 | | |
123 | 135 | | |
| |||
0 commit comments