DearPyGui
DearPyGui copied to clipboard
How to display Greek letters
The interface cannot display Greek letters (for example :α, β). Even after registering different fonts, it still cannot be displayed. How can this be achieved
with dpg.font_registry(): with dpg.font("fonts/simsun.ttc", 20) as font1:
# add the default font range
dpg.add_font_range_hint(dpg.mvFontRangeHint_Default)
# helper to add range of characters
# Options:
# mvFontRangeHint_Japanese
# mvFontRangeHint_Korean
# mvFontRangeHint_Chinese_Full
# mvFontRangeHint_Chinese_Simplified_Common
# mvFontRangeHint_Cyrillic
# mvFontRangeHint_Thai
# mvFontRangeHint_Vietnamese
dpg.add_font_range_hint(dpg.mvFontRangeHint_Japanese)
# add specific range of glyphs
dpg.add_font_range(0x0300, 0x03ff)
Can you show your entire code, or a minimal example that one can copy-paste and run? With what little code you've provided, it's pure guesswork.