CaTeX icon indicating copy to clipboard operation
CaTeX copied to clipboard

Wrong font for å, ä, ö (and other special characters)

Open Coec0 opened this issue 4 years ago • 4 comments

Bug description

When using å, ä, ö or other special character in text mode it gets another font.

To Reproduce

CaTeX(r'\text{Möst of the text häve gôöd pårsing }')

Expected behavior

All letters should have the same font.

Screenshots

text_special_characters

Coec0 avatar Aug 02 '20 10:08 Coec0

Hi 👋🏽 Thank you for opening your first issue with CaTeX ❤

You can expect triage from us soon 🙂 In the meantime, you can try to search for similar issues in our issue database.

github-actions[bot] avatar Aug 02 '20 10:08 github-actions[bot]

Noticed that as well, thanks! 👍🏼

Noticed that as well, thanks! 👍🏼

please support UTF8 ,like latex's;

\usepackage[utf8]{inputenc}

yavuztarhan avatar Oct 21 '20 08:10 yavuztarhan

i found the solution. download a font which you want with support your special characters (like roboto.ttf), rename it like this,for all (4) named "main" fonts; roboto-bold.ttf => KaTeX_Main-Bold.ttf go to .../flutter/.pub-cache/hosted/pub.dartlang.org/catex-0.0.1+6/lib/fonts

replace 4 named "main" fonts with your new fonts. thats so.


if the collaborator replace the main fonts with UTF8 support any font , so no need this.

yavuztarhan avatar Oct 21 '20 10:10 yavuztarhan