From d3d079c1622328ba1109fccf6e83e19b55890c60 Mon Sep 17 00:00:00 2001 From: valadaptive Date: Fri, 13 Jun 2025 07:35:36 -0400 Subject: [PATCH 1/2] Use the correct family ID when adding font aliases --- fontique/src/family_name.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fontique/src/family_name.rs b/fontique/src/family_name.rs index 3573d831d..4ebc9ff1d 100644 --- a/fontique/src/family_name.rs +++ b/fontique/src/family_name.rs @@ -82,7 +82,7 @@ impl FamilyNameMap { } let new_name = FamilyName { name: name.into(), - id: FamilyId::new(), + id, }; self.name_map.insert(key.as_bytes().into(), new_name); } From 3e105c45fd6d79d63a73a602a5d77f5fa747a6a0 Mon Sep 17 00:00:00 2001 From: valadaptive Date: Fri, 13 Jun 2025 08:17:40 -0400 Subject: [PATCH 2/2] Add family ID fix to `CHANGELOG.md` --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a14738fcc..f6aaf4dad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,10 @@ This release has an [MSRV] of 1.82. ### Fixed +#### Fontique + +- Font family name aliases (secondary names for font families, often in another language) not being registered. ([#380][] by [@valadaptive][]) + ## [0.5.0] - 2025-06-01 This release has an [MSRV] of 1.82. @@ -292,6 +296,7 @@ This release has an [MSRV][] of 1.70. [#353]: https://github.com/linebender/parley/pull/353 [#362]: https://github.com/linebender/parley/pull/362 [#369]: https://github.com/linebender/parley/pull/369 +[#380]: https://github.com/linebender/parley/pull/380 [Unreleased]: https://github.com/linebender/parley/compare/v0.5.0...HEAD [0.5.0]: https://github.com/linebender/parley/compare/v0.4.0...v0.5.0