Refactor #4125: Apply textAlign, fontSize, fontName getter/setter in samples