servo/components/fonts
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
..
platform ohos: Detect installed fonts (#32731) 2024-07-22 14:03:26 +00:00
tests fonts: Add support for generic font families and font size configuration (#32673) 2024-07-08 17:17:48 +00:00
Cargo.toml fonts: Add support for generic font families and font size configuration (#32673) 2024-07-08 17:17:48 +00:00
font.rs enhance: Implement CanvasRenderingContext2D.measureText (#32704) 2024-07-17 19:20:18 +00:00
font_cache_thread.rs fonts: Add support for generic font families and font size configuration (#32673) 2024-07-08 17:17:48 +00:00
font_context.rs canvas: Remove as much usage of font-kit as possible (#32758) 2024-07-11 04:25:38 +00:00
font_store.rs fonts: Add support for generic font families and font size configuration (#32673) 2024-07-08 17:17:48 +00:00
font_template.rs Rename gfx to fonts (#32556) 2024-06-19 20:26:19 +00:00
glyph.rs Rename gfx to fonts (#32556) 2024-06-19 20:26:19 +00:00
lib.rs Rename gfx to fonts (#32556) 2024-06-19 20:26:19 +00:00
shaper.rs fix a couple of simple clipy warnings (#32813) 2024-07-19 13:18:34 +00:00