From 84e35cbac5397e01801191137f2299c5213eca61 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 7 May 2020 20:08:37 +0530 Subject: [PATCH] Disable broken font setting in mruby --- binding-mruby/font-binding.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/binding-mruby/font-binding.cpp b/binding-mruby/font-binding.cpp index 46da209..243a90c 100644 --- a/binding-mruby/font-binding.cpp +++ b/binding-mruby/font-binding.cpp @@ -96,6 +96,9 @@ MRB_METHOD(FontGetName) MRB_METHOD(FontSetName) { + // TODO: Fix this implementation + // It should be able to handle both string and array sets +#if 0 Font *f = getPrivateData(mrb, self); mrb_value name; @@ -108,6 +111,9 @@ MRB_METHOD(FontSetName) mrb_iv_set(mrb, self, mrb_intern_cstr(mrb, "name"), name); return name; +#else + return mrb_nil_value(); +#endif } template