simpleclub / CaTeX

Fast math TeX renderer for Flutter written in Dart.

Home Page:https://simpleclub.github.io/CaTeX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Coec0 opened this issue · comments

commented

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

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.

Noticed that as well, thanks! 👍🏼

Noticed that as well, thanks! 👍🏼

please support UTF8 ,like latex's;

\usepackage[utf8]{inputenc}

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.