mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
ohos: Add fallback font for serif (#32555)
The fallback behavior seems to have changed recently. Now we need to explicitly add a fallback for `serif` otherwise no font is selected. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
This commit is contained in:
parent
cc1c31ef3f
commit
7957d11b5d
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,8 @@ impl FontList {
|
|||
let alternatives = [
|
||||
("HarmonyOS Sans", "HarmonyOS_Sans_SC_Regular.ttf"),
|
||||
("sans-serif", "HarmonyOS_Sans_SC_Regular.ttf"),
|
||||
// Todo: It's unclear what font should be used, but we need to use something
|
||||
("serif", "HarmonyOS_Sans_SC_Regular.ttf"),
|
||||
];
|
||||
|
||||
alternatives
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue