Commit 3bd32bc
authored
Deduplicate Default Font Data (#20397)
# Objective
The data for the default font is included twice with `include_bytes!`.
This is not a big problem as the data gets deduplicated at some point
during optimization, so this PR only saves 50 bytes~ instead of 20kb,
but we're still wasting time during compilation copying this file around
twice.
# Solution
Use the `DEFAULT_FONT_DATA` constant introduced in #14406 for setting
the default font instead of including the bytes a second time via
`load_internal_binary_asset`.1 parent 599e015 commit 3bd32bc
1 file changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | 70 | | |
73 | 71 | | |
74 | 72 | | |
| |||
141 | 139 | | |
142 | 140 | | |
143 | 141 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
150 | 148 | | |
151 | 149 | | |
0 commit comments