Skip to content

Fail to render 'h' #40

@elbaro

Description

@elbaro

A symbol for 'h' is equivalent to the planck constant 'h'. The unicode standard omits the mathematical 'h' to avoid the duplication.
ReX currently uses this non-existing glyph and fails to render 'h'.

A workaround is to check for this special case and use the alternative codepoint.

Find and replace

match codepoint {
        LOWER_A..=LOWER_Z => style_lookup(&LATIN_LOWER_LUT, codepoint, style),

with

const LOWER_H: u32 = 'h' as u32;

match codepoint {
        LOWER_H..=LOWER_H => 0x210E,  // planck constant
        LOWER_A..=LOWER_Z => style_lookup(&LATIN_LOWER_LUT, codepoint, style),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions