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

Better fonts support #16

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Better fonts support #16

wants to merge 4 commits into from

Conversation

xlucn
Copy link
Owner

@xlucn xlucn commented Oct 20, 2021

Try to support more fonts. Closing: #12

What the PR does:

  • Try to show all fonts listed by fc-list.
  • Use pango format to print out texts if the default failed. Pango suppoprts special fonts like color emojis better.
  • Show available glyphs in the font file (by showing charset with fc-query command) if the font does not cover printable ascii characters. PREVIEW_TEXT is not respected in this case. Also happens a lot for color emojis.

Issues for now:

  • The format of color emoji fonts is usually a mess. E.g., it does not break the line where I tell it to.
  • I am not familiar with either font configuration for convert, pango, or fontconfig. The problems include:
    • Some font files have more than one font family or style in it, so should I specify fonts with font file or font family-style?
    • Some fonts show multiple families and styles with fc-query. I don't know which one to show, or to show all of them.

@xlucn xlucn linked an issue Oct 20, 2021 that may be closed by this pull request
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.

Emoji in preview text?
1 participant