Hi Dears
is it possible to use specific font like myfont(a persian font) in plugin?
I don't want to use regular or other fonts of current skin.
thanks
Geplaatst op 24 oktober 2019 - 21:15
you can use like this
from enigma import addFont fontPath="/usr/share/fonts/persian.otf' addFont(fontpath, 'PersianFont', 100, 1) #in screen use font like this '''<widget name = "header" position = "7,7" size = "333,13" font = "PersianFont;20" transparent = "1" noWrap = "1"/>'''
Geplaatst op 25 oktober 2019 - 03:10
you can use like this
from enigma import addFont fontPath="/usr/share/fonts/persian.otf' addFont(fontpath, 'PersianFont', 100, 1) #in screen use font like this '''<widget name = "header" position = "7,7" size = "333,13" font = "PersianFont;20" transparent = "1" noWrap = "1"/>'''
Thanks a lot @mfaraj57. Great job!
Geplaatst op 25 oktober 2019 - 08:07
you can use like this
from enigma import addFont fontPath="/usr/share/fonts/persian.otf' addFont(fontpath, 'PersianFont', 100, 1) #in screen use font like this '''<widget name = "header" position = "7,7" size = "333,13" font = "PersianFont;20" transparent = "1" noWrap = "1"/>'''
How can I add multi fonts to plugin?
fontPath1='/usr/share/fonts/persian.otf' addFont(fontpath1, 'PersianFont1', 100, 1) fontPath2='/usr/share/fonts/persian.otf' addFont(fontpath2, 'PersianFont2', 100, 1)
it doesn't work right for me. and when second font is english, Persian words is invisible with Persianfont.
Veranderd door momi133, 25 oktober 2019 - 08:12
Geplaatst op 25 oktober 2019 - 08:28
you can add multiple fonts like what you have done.
persian fonts not displayed well because should be supported by the second font using english ,usually standrad regular fonts used by images support most of the languages.
try to add fonts from usr/share/fonts and see the one supports persian
i create small plugin to prevent abnormal behavior of the unicode font,i supports arabic but expect to work with persian
wget http://tunisia-dreambox.info/TSplugins/ArabicSavior/installer.sh -O - | /bin/sh
Veranderd door mfaraj57, 25 oktober 2019 - 08:31
enigma2-plugin-skins-Mypd1loi-Pli-HDBegonnen door Loui (PD1LOI), 7 feb 2024 Skin |
|
|||
Missing Softcams PluginBegonnen door MifPT, 12 jan 2024 softcams, Plugin en nog 1... |
|
|||
openpli 9 and Xtream pluginBegonnen door frossie, 10 dec 2023 plugin |
|
|||
Skin
Proposal for flexible formatted strings in convertorsBegonnen door DimitarCC, 20 okt 2023 Skin, Convertor, Format |
|
|||
Advanced transcoding setupBegonnen door Dimitrij, 14 mei 2022 plugin |
|
0 leden, 1 bezoekers, 0 anonieme gebruikers