Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Switch to using system fonts#230

Closed
samwilson wants to merge 1 commit into
wikimedia:masterfrom
samwilson:lohit-font
Closed

Switch to using system fonts#230
samwilson wants to merge 1 commit into
wikimedia:masterfrom
samwilson:lohit-font

Conversation

@samwilson

@samwilson samwilson commented Jun 12, 2020

Copy link
Copy Markdown
Member

Rather than including our own fonts, instead include fonts from
the host system.

https://phabricator.wikimedia.org/T261479

@samwilson samwilson added the WIP Work in progress label Jun 12, 2020
@samwilson samwilson changed the title [WIP] Switch to using system fonts Switch to using system fonts Jun 19, 2020
@samwilson samwilson added Ready for review and removed WIP Work in progress labels Jun 22, 2020

@MusikAnimal MusikAnimal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks OK to me, though I admit I don't really understand how the system works. I was going to test this on https://wsexport-test.wmflabs.org/, but first things first -- I can't repro the original issue. On my end, all characters appear correctly when exporting this book (linked to the description for T254918) on production. I do not see any boxes. Are there other examples I could try?

I am still going to 👍 because I trust you :)

@samwilson

Copy link
Copy Markdown
Member Author

Code looks OK to me, though I admit I don't really understand how the system works. I was going to test this on https://wsexport-test.wmflabs.org/, but first things first -- I can't repro the original issue. On my end, all characters appear correctly when exporting this book (linked to the description for T254918) on production. I do not see any boxes. Are there other examples I could try?

You might have fonts installed that support Kannada. I think the issue is most likely to come up when a book is exported on a system with the right fonts (and so everything looks fine) is transferred to a device (e.g. an ereader) that doesn't have the right fonts. With this fix, the user will be given the option to embed the correct font, but they'll still have to actually do that to avoid the issue.

I am still going to +1 because I trust you :)

hehe thanks. I'll make sure not to put it into production without good testing on the test site!

Rather than including our own fonts, instead include fonts from
the host system. Their details will be cached in a new qqq
directory alongside the existing language-specific cache files.

Bug: T261479
@samwilson samwilson closed this Oct 14, 2020
@samwilson

Copy link
Copy Markdown
Member Author

New branch for this: #248

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

Development

Successfully merging this pull request may close these issues.

2 participants