Gnimuc / CImGui.jl

Julia wrapper for cimgui
https://github.com/cimgui/cimgui
MIT License
259 stars 25 forks source link

The interface is too small on high dpi screens. #9

Closed Losses closed 4 years ago

Losses commented 5 years ago

Is it possible to automatically handle high dpi screen problem?

image

Gnimuc commented 5 years ago

You mean the size of the default font is too small? I guess Roboto-Medium would be a better choice for high dpi screens.

fonts_dir = joinpath(@__DIR__, "..", "fonts")
fonts = CImGui.GetIO().Fonts
CImGui.AddFontFromFileTTF(fonts, joinpath(fonts_dir, "Roboto-Medium.ttf"), 16)