mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 08:18:08 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user