/*
We only want to process a grob once.
*/
+ if (!size)
+ return ;
+
if (gi.context () != context ())
- return;
-
- if (size)
- {
- Real font_size = size
- + robust_scm2double (gi.grob ()->get_property ("font-size"), 0);
- gi.grob ()->set_property ("font-size", scm_make_real (font_size));
- }
+ return ;
+
+ Real font_size = size
+ + robust_scm2double (gi.grob ()->get_property ("font-size"), 0);
+ gi.grob ()->set_property ("font-size", scm_make_real (font_size));
}
#include "translator.icc"
/* descr */ "Puts fontSize into font-relative-size grob property.",
/* creats*/ "",
/* accepts */ "",
- /* acks */ "",
/* reads */ "fontSize",
/* write */ "");