This commit is contained in:
Kovid Goyal
2025-10-12 09:00:13 +05:30
parent 471831831b
commit 6ea4bfa433

View File

@@ -245,7 +245,7 @@ parse_font_mod_size(PyObject *val, float *sz, AdjustmentUnit *unit) {
static inline void
modify_font(PyObject *mf, Options *opts) {
#define S(which) { PyObject *v = PyDict_GetItemString(mf, #which); if (v) parse_font_mod_size(v, &opts->which.val, &opts->which.unit); }
#define S(which) { PyObject *v = PyDict_GetItemString(mf, #which); if (v) parse_font_mod_size(v, &opts->which.val, &opts->which.unit); else zero_at_ptr(&opts->which); }
S(underline_position); S(underline_thickness); S(strikethrough_thickness); S(strikethrough_position);
S(cell_height); S(cell_width); S(baseline);
#undef S