servo/components
Jonathan Schwender f040b821a3
ohos: Detect installed fonts (#32731)
* ohos: Add `ohos_mock` cfg.

This allows using the Linux build together with the `ohos`
font code, using the fonts ship in the `previewer` directory of the OH SDK.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>

* ohos: Detect installed fonts

Scan the systems font folder to detect installed fonts,
derive their associated font names and generate the font list
based on that.

Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>

* Use hardcoded filepaths for HMOS Color emojis

Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>

* Also support parsing OH 4.x Noto fonts

Currently we don't have an easy way to test the OH version
from the fonts module, so the parsing code has to be extended.
Once the OH 5.0 beta has a reliable fontconfig.json filemap,
then we can probably get rid of most of the parsing code,
and hardcode the OH 4.x Note fonts as a fallback.

Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>

---------

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
2024-07-22 14:03:26 +00:00
..
allocator deps: switch to tikv-jemallocator crates in Cargo.toml (#32828) 2024-07-22 07:55:46 +00:00
background_hang_monitor Bump duplicated nix to 0.29 (#32764) 2024-07-13 07:48:01 +00:00
bluetooth clippy: fix some warnings in desktop and some components (#32583) 2024-06-25 07:04:23 +00:00
canvas fix a couple of simple clipy warnings (#32813) 2024-07-19 13:18:34 +00:00
compositing compositor: propagate scroll events across pipelines (#32829) 2024-07-22 12:42:44 +00:00
config Enable OpenXR backend from the WebXR crate (#32817) 2024-07-20 06:24:40 +00:00
config_plugins Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
constellation Gamepad: Implement GamepadHapticActuator (#32046) 2024-07-20 06:29:27 +00:00
deny_public_fields Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
devtools fix a couple of simple clipy warnings (#32813) 2024-07-19 13:18:34 +00:00
dom_struct Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
domobject_derive Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
fonts ohos: Detect installed fonts (#32731) 2024-07-22 14:03:26 +00:00
geometry Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
hyper_serde Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
jstraceable_derive Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
layout Convert layout to use Gecko's alignment style representation (#32790) 2024-07-17 14:18:55 +00:00
layout_2020 layout: Reduce the complexity of FlexLine::layout (#32810) 2024-07-19 10:37:29 +00:00
layout_thread Fix more clippy (#32740) 2024-07-09 04:47:43 +00:00
layout_thread_2020 fonts: Add support for generic font families and font size configuration (#32673) 2024-07-08 17:17:48 +00:00
media Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
metrics Rename gfx to fonts (#32556) 2024-06-19 20:26:19 +00:00
net DevTools: Replace camel case variable names (#32726) 2024-07-08 11:18:35 +00:00
pixels Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
profile deps: switch to tikv-jemallocator crates in Cargo.toml (#32828) 2024-07-22 07:55:46 +00:00
rand Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
range Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
script Implement URL::parse() (#32819) 2024-07-22 08:48:16 +00:00
servo Move legacy layout behind a feature flag (#32759) 2024-07-11 13:24:52 +00:00
shared Gamepad: Implement GamepadHapticActuator (#32046) 2024-07-20 06:29:27 +00:00
url script: Impl cloning of JSPrincipals (#32706) 2024-07-06 10:25:38 +00:00
webdriver_server Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
webgpu Remove failure breaks from webgpu thread (#32814) 2024-07-20 19:57:53 +00:00