yutani: Font.width is a method

This commit is contained in:
K. Lange 2023-02-19 20:34:59 +09:00
parent 81cf0f729e
commit 7c0844a908

View File

@ -866,7 +866,7 @@ KRK_Method(Font,draw_string_shadow) {
KRK_Method(Font,width) {
const char * s;
if (!krk_parseArgs("s", (const char*[]){"s"}, &s)) return NONE_VAL();
if (!krk_parseArgs(".s", (const char*[]){"s"}, &s)) return NONE_VAL();
INIT_CHECK(Font);
return INTEGER_VAL(tt_string_width(self->fontData, s));
}