renderer: Include arrows block in constrained symbols (#9189)

Fixes #8693 

**Before**
<img width="164" height="47" alt="Screenshot 2025-10-13 at 14 00 28"
src="https://github.com/user-attachments/assets/df42df51-7706-4285-8c91-d79e227999ed"
/>

**After**
<img width="164" height="47" alt="Screenshot 2025-10-13 at 14 01 14"
src="https://github.com/user-attachments/assets/c1ca314e-a2ad-47b2-9bcf-d4200db173f5"
/>

The effect is somewhat subtle with my combination of fonts. See #8693
for the more egregious examples that this fixes.
pull/9192/head
Daniel Wennberg 2025-10-13 14:10:29 -07:00 committed by GitHub
parent 5f287774a6
commit 14b441be1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ fn computeIsSymbol(
_ = tracking; _ = tracking;
const block = data.block; const block = data.block;
data.is_symbol = data.general_category == .other_private_use or data.is_symbol = data.general_category == .other_private_use or
block == .arrows or
block == .dingbats or block == .dingbats or
block == .emoticons or block == .emoticons or
block == .miscellaneous_symbols or block == .miscellaneous_symbols or

View File

@ -238,6 +238,7 @@ pub fn isCovering(cp: u21) bool {
/// Returns true of the codepoint is a "symbol-like" character, which /// Returns true of the codepoint is a "symbol-like" character, which
/// for now we define as anything in a private use area, and anything /// for now we define as anything in a private use area, and anything
/// in several unicode blocks: /// in several unicode blocks:
/// - Arrows
/// - Dingbats /// - Dingbats
/// - Emoticons /// - Emoticons
/// - Miscellaneous Symbols /// - Miscellaneous Symbols