Skip to content

Not supporting for some feature tags-"calt" (Contextual Alternates) #801

@trangluongdoi2

Description

@trangluongdoi2

I have a font that enables the "calt" feature. For example, the text "abcd" is rendered like that (Just a span text on browser with CSS (font-feature-settings: "calt" on;)
Image

But when I use the function forEachGlyph for the text with GlyphRenderOptions like this:
const renderOptions = { script: 'latn', kerning: true, features: { calt: true, liga: true, rlig: true, }, }
I received the results and used them to render on the browser by rendering them in an SVG file with paths, It is not working well like I expected.

Image

Don't worry about the position when I use paths to render because it is for illustration purposes only.
How can I fix it? The font I use is below:

63qdqna4uqehnkm3.woff.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions