Skip to content

fix(parsers): normalize quoted and whitespace-padded font aliases in resolveAliasDisplayName - #2842

Closed
amir-rezaei wants to merge 1 commit into
heygen-com:mainfrom
amir-rezaei:fix/font-aliases-strip-quotes-in-display-name
Closed

fix(parsers): normalize quoted and whitespace-padded font aliases in resolveAliasDisplayName#2842
amir-rezaei wants to merge 1 commit into
heygen-com:mainfrom
amir-rezaei:fix/font-aliases-strip-quotes-in-display-name

Conversation

@amir-rezaei

Copy link
Copy Markdown

Description

This PR updates resolveAliasDisplayName in packages/parsers/src/fontAliases.ts.

Details

  • Strips surrounding quotes and leading/trailing whitespace from font-family alias strings before map lookup so CSS font declarations like 'Helvetica Neue' resolve to canonical display names correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants