Scale font size by screen DPI on OS X

There seems to be no way to pass a custom DPI to CoreText
This commit is contained in:
Kovid Goyal
2017-01-11 05:53:55 +05:30
parent 70719d37fd
commit 282d6faa5f
3 changed files with 50 additions and 7 deletions

View File

@@ -2,4 +2,9 @@
# vim:fileencoding=utf-8
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
from .freetype import set_font_family, render_cell # noqa
from kitty.constants import isosx
if isosx:
from .core_text import set_font_family, render_cell # noqa
else:
from .freetype import set_font_family, render_cell # noqa