mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-27 19:31:46 +00:00
macos implementation for face_apply_scale
This commit is contained in:
parent
e6a4945aff
commit
1784823c18
1 changed files with 5 additions and 0 deletions
|
|
@ -517,6 +517,11 @@ set_size_for_face(PyObject *s, unsigned int UNUSED desired_height, bool force, F
|
|||
return _set_size_for_face(self, force, fg->font_sz_in_pts, fg->logical_dpi_x, fg->logical_dpi_y);
|
||||
}
|
||||
|
||||
bool
|
||||
face_apply_scaling(PyObject *f, const FONTS_DATA_HANDLE fg) {
|
||||
return set_size_for_face(f, 0, false, fg);
|
||||
}
|
||||
|
||||
static PyObject*
|
||||
set_size(CTFace *self, PyObject *args) {
|
||||
double font_sz_in_pts, dpi_x, dpi_y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue