Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix font name by removing subset tag #357

Merged
merged 5 commits into from
Jan 16, 2020
Merged

Fix font name by removing subset tag #357

merged 5 commits into from
Jan 16, 2020

Conversation

pietermarsman
Copy link
Member

@pietermarsman pietermarsman commented Jan 9, 2020

Description

Font names from embedded fonts may have differently named subsets. For example, the font Georgia may have the subset ABCDEF+Georgia. The six letters before the plus sign is called a tag and can be used to identify different subsets of the same font.

When converting to HTML the browser does not recogize the font if the tag is also included in the font-family name. This PR removes this font subset tag prefix.

Fixes #349
Fixes #72

How Has This Been Tested?

With the pdf from #349.

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the README.md and other documentation, or I am sure that this is not necessary
  • I have added a consice human-readable description of the change to CHANGELOG.md
  • I have added docstrings to newly created methods and classes
  • I have optimized the code at least one time after creating the initial version

@tataganesh
Copy link
Member

Just one small comment. Otherwise looks good.

@pietermarsman pietermarsman merged commit 410d7ec into develop Jan 16, 2020
@pietermarsman pietermarsman deleted the fix-font-name branch January 21, 2020 20:08
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.

The font name from an embedded font contains a strange prefix PDF to HTML conversion issues
2 participants