diff --git a/javascript/sources/Config.cc b/javascript/sources/Config.cc index ac0090a8..79a6b9c4 100644 --- a/javascript/sources/Config.cc +++ b/javascript/sources/Config.cc @@ -36,6 +36,11 @@ void Config::setExperimentalFeatureEnabled(int feature, bool enabled) YGConfigSetExperimentalFeatureEnabled(m_config, static_cast(feature), enabled); } +void Config::setPointScaleFactor(float pixelsInPoint) +{ + YGConfigSetPointScaleFactor(m_config, pixelsInPoint); +} + bool Config::isExperimentalFeatureEnabled(int feature) const { return YGConfigIsExperimentalFeatureEnabled(m_config, static_cast(feature)); diff --git a/javascript/sources/Config.hh b/javascript/sources/Config.hh index 055f4d94..5f4e1bfb 100644 --- a/javascript/sources/Config.hh +++ b/javascript/sources/Config.hh @@ -40,6 +40,7 @@ class Config { public: // Setters void setExperimentalFeatureEnabled(int feature, bool enabled); + void setPointScaleFactor(float pixelsInPoint); public: // Getters diff --git a/javascript/sources/nbind.cc b/javascript/sources/nbind.cc index acd28e1b..ce6c0b8f 100644 --- a/javascript/sources/nbind.cc +++ b/javascript/sources/nbind.cc @@ -47,6 +47,7 @@ NBIND_CLASS(Config) method(destroy); method(setExperimentalFeatureEnabled); + method(setPointScaleFactor); method(isExperimentalFeatureEnabled); }