Skip to content

convert fonts woff2 to otf/ttf#21

Merged
dteviot merged 2 commits into
masterfrom
convert-fonts-for-better-compability
Jul 13, 2026
Merged

convert fonts woff2 to otf/ttf#21
dteviot merged 2 commits into
masterfrom
convert-fonts-for-better-compability

Conversation

@gamebeaker

@gamebeaker gamebeaker commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

improve "Link extra fonts (ChrysanthemumGarden, requiemtls etc.)" for ChrysanthemumGarden to enable displaying on ereader that don't support woff2 even if it is a valid font for epub3.3 :/

image

https://www.w3.org/TR/epub-33/#sec-core-media-types

It converts woff2 to ttf/ otf.

@dteviot as it includes a new Library please approve the change.

Here is the original file: https://www.npmjs.com/package/wawoff2
Code -> wawoff2 -> build -> decompress_binding.js

@gamebeaker gamebeaker requested a review from dteviot July 7, 2026 15:29
@gamebeaker

Copy link
Copy Markdown
Collaborator Author

I tried using a node approach for the opf file but it somehow broke the file that's why i use string substitution.

It always tried to add a closing tags like </item> for all tags and that broke it.

@dteviot

dteviot commented Jul 13, 2026

Copy link
Copy Markdown
Owner

@gamebeaker
You should have commit access to this repo.

@dteviot dteviot merged commit 977a44e into master Jul 13, 2026
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.

2 participants