bksubhuti / tipitaka-pali-reader

A Pali Reading app made in Flutter
21 stars 5 forks source link

Font problem 2 issues #230

Closed bksubhuti closed 7 months ago

bksubhuti commented 8 months ago

If one of those was roman .. eg. Sinahal UI language and Roman Script
Then some of the special pāḷi characters would not show up .. This is because the special font for sinhala does not support some of these characters.

It is not isolated for sinhala. Today I got a complaint on devanagari.

Fixing the issue:
we need two fonts supported. UI Font for the selected language

Script font for the reader and also the book selection (homeview).

bksubhuti commented 8 months ago

This is also an issue in Thai language 2.

It was complained in a review about the Dictionary and Thai lanague affecting Dpd roman

We need to manually load the roman font when it is dpd or peu no matter what language or script is selected. We need to manually load the script font for TOC We need to manually load the script font for palireaderwidget We need to manually load the script font for the bookview (home).

by manually loading the associated script font, this will fix the problem. It should be able to be done without android (which does not work for ven pndazza).
Then I can test.

The cause is because these fonts do not support full roman characters by default. The android fonts do not have this. We could make a custom font, but we would need to do for other languages too.

The solution is to fix in code to load the correct font.

bksubhuti commented 7 months ago

only the tab ctrl label is left for fixing this issue. Tabctrl cannot take font it seems. Quick fix.. there are a two languages that give all boxes.. If.. current script == "brahmi, thai tham ln" Need to switch to roman text for those specific languages and pass to tabctrl label. Need to place issue with tabctrl people.

bksubhuti commented 7 months ago

only a linux problem it seems.