Very small font and corrupted characters
- marcoagpinto
- Addict
- Posts: 939
- Joined: Sun Mar 10, 2013 3:01 pm
- Location: Portugal
- Contact:
Very small font and corrupted characters
Hello!
My Proofing Tool GUI software is being used by a user to develop the Marathi spell checker.
However:
I am using the Arial font.
Notice how the font becomes petite in the "Rules" column and also in the first column. All other columns show normal size.
Also, at the bottom, the EditorGadget shows corrupt characters... how can this be if in the ListIconGadget and StringGadget they appear well?
I am using PureBasic 5.70 LTS, can this be a PB bug?
Thanks!
My Proofing Tool GUI software is being used by a user to develop the Marathi spell checker.
However:
I am using the Arial font.
Notice how the font becomes petite in the "Rules" column and also in the first column. All other columns show normal size.
Also, at the bottom, the EditorGadget shows corrupt characters... how can this be if in the ListIconGadget and StringGadget they appear well?
I am using PureBasic 5.70 LTS, can this be a PB bug?
Thanks!
Re: Very small font and corrupted characters
If I see the letters in the StringGadget "Word:" ... it looks like Marathi.
So I think he is using a font for this. You use arial, so some of the letters cannot shown.
So I think he is using a font for this. You use arial, so some of the letters cannot shown.
- marcoagpinto
- Addict
- Posts: 939
- Joined: Sun Mar 10, 2013 3:01 pm
- Location: Portugal
- Contact:
Re: Very small font and corrupted characters
But I set "Arial" to all gadgets... how can the gadgets use two fonts and the EditorGadget doesn't show the Marathi?Bisonte wrote:If I see the letters in the StringGadget "Word:" ... it looks like Marathi.
So I think he is using a font for this. You use arial, so some of the letters cannot shown.
Re: Very small font and corrupted characters
I guess it works only with "display" dialog boxes, but does not render unicode characters correctly in "Edit" dialog boxes.
For e.g. all the words on Thesaurus tab shows correctly as shown below. But if I try to edit a word, the "Meanings" section shows only boxes while "Synonym" shows correctly.
I am not sure if this should be reported to PureBasic or the Programmer though
Correct:
Incorrect rendering:
The same incorrect rendering while trying to bulk import:
If anyone wants to see this in action, feel free to download the .oxt file from...
https://extensions.libreoffice.org/exte ... ellchecker
Unzip and open th_mr_IN_v2.dat file from thesaurus tab.
For e.g. all the words on Thesaurus tab shows correctly as shown below. But if I try to edit a word, the "Meanings" section shows only boxes while "Synonym" shows correctly.
I am not sure if this should be reported to PureBasic or the Programmer though
Correct:
Incorrect rendering:
The same incorrect rendering while trying to bulk import:
If anyone wants to see this in action, feel free to download the .oxt file from...
https://extensions.libreoffice.org/exte ... ellchecker
Unzip and open th_mr_IN_v2.dat file from thesaurus tab.
Re: Very small font and corrupted characters
Can you try with this code? (Works here, Linux)
Code: Select all
win = OpenWindow(#PB_Any, 50, 100, 800, 600, "..")
AddKeyboardShortcut(win, #PB_Shortcut_Escape, 10)
tx = TextGadget(#PB_Any, 10, 10, 300, 20, "")
ed = EditorGadget(#PB_Any, 10, 30, 300, 100)
tx2 = TextGadget(#PB_Any, 10, 160, 300, 20, "")
ed2 = EditorGadget(#PB_Any, 10, 190, 300, 100)
f = LoadFont(#PB_Any, "arial", 12)
Debug f
SetGadgetFont(tx2, FontID(f))
SetGadgetFont(ed2, FontID(f))
s.s = "Marathi (मराठी marāṭhī [mə'ɾa:ʈʰi:])"
SetGadgetText(tx, s)
SetGadgetText(ed, s)
SetGadgetText(tx2, s)
SetGadgetText(ed2, s)
Repeat
WaitWindowEvent()
Until Event() = #PB_Event_CloseWindow Or Event() = #PB_Event_Menu
- marcoagpinto
- Addict
- Posts: 939
- Joined: Sun Mar 10, 2013 3:01 pm
- Location: Portugal
- Contact:
Re: Very small font and corrupted characters
@#NULL
Well, on Windows 10 1903 it gets corrupted results:
Well, on Windows 10 1903 it gets corrupted results:
Re: Very small font and corrupted characters
On Windows you can use the "Arial Unicode MS" font instead of Arial.
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
- marcoagpinto
- Addict
- Posts: 939
- Joined: Sun Mar 10, 2013 3:01 pm
- Location: Portugal
- Contact:
Re: Very small font and corrupted characters
@Shantanu!!!!
Please try the font:
"Arial Unicode MS"
Like mentioned by the person in the previous post.
Tell me if it works.
Thanks!
Please try the font:
"Arial Unicode MS"
Like mentioned by the person in the previous post.
Tell me if it works.
Thanks!
Re: Very small font and corrupted characters
Thank you for that hint. In fact any unicode Marathi font will solve this problem!wilbert wrote:On Windows you can use the "Arial Unicode MS" font instead of Arial.
- marcoagpinto
- Addict
- Posts: 939
- Joined: Sun Mar 10, 2013 3:01 pm
- Location: Portugal
- Contact:
Re: Very small font and corrupted characters
Hello!
"Arial Unicode MS" no longer comes with Microsoft Office and I have a new computer since January (and it is no longer there).
Is there any replacement for it for the Marathi language?
Thanks!
"Arial Unicode MS" no longer comes with Microsoft Office and I have a new computer since January (and it is no longer there).
Is there any replacement for it for the Marathi language?
Thanks!