Text-Editor
Text-Editor copied to clipboard
fixed invalid index type Arial on line 86 dpad.py
On line 86 it gives the following error:
Traceback (most recent call last):
File "dpad.py", line 86, in
There is no Arial font in the font_tuple variable ('fangsong ti', 'fixed', 'clearlyu alternate glyphs', 'courier 10 pitch', 'open look glyph', 'bitstream charter', 'song ti', 'open look cursor', 'newspaper', 'clearlyu ligature', 'mincho', 'clearlyu devangari extra', 'clearlyu pua', 'clearlyu', 'clean', 'nil', 'clearlyu arabic', 'clearlyu devanagari', 'gothic', 'clearlyu arabic extra') I printed the above type and checked.
Have set the index value to "fangsong ti" the first item in the font tuple.
Thankyou
I think you are not using the Windows Operating System. If you are using linux make sure you install the MS fonts. And i think that Arial Black is the common font for both OS. If you can confirm this you can make changes to the font "Arial Black". @SairajK19
Hello,
I tried "Arial Black" too sadly it dosen't support (yes and i do use a linux operating system ie.Ubuntu 20.04)
Traceback (most recent call last):
File "dpad.py", line 86, in
Did you meant "Arial Black" will work if I install MS Font on my system first?
Yes these fonts will work if you install MS fonts in Linux
Yes I tried to install MS Font on my system and it's already on its newest version
PS:
Reading package lists... Done
Building dependency tree
Reading state information... Done
ttf-mscorefonts-installer is already the newest version (3.7ubuntu6).
I then again tried executing the python file and it dosent work.Throwing the same error:
Traceback (most recent call last):
File "dpad.py", line 86, in
I actually have Arial Font on my system as I can use it on my LibreOffice Writer (same as Office Word on Linux).So i don't really think thats the issue.
Yeah ! let both of us try to find the solution for this error if we can have a default font that can work on every OS
okay cool!.