diff --git a/source/org/thdl/tib/input/DuffPane.java b/source/org/thdl/tib/input/DuffPane.java index 04ce61a..cfcc6f6 100644 --- a/source/org/thdl/tib/input/DuffPane.java +++ b/source/org/thdl/tib/input/DuffPane.java @@ -599,6 +599,15 @@ public class DuffPane extends TibetanPane implements FocusListener { return getTibDoc().getTibetanFontSize(); } +/** +* Overrides JTextComponent.setFont(). This method +* calls setRomanAttributeSet(), otherwise DuffPane +* would ignore calls to setFont(). +*/ + public void setFont(Font font) { + setRomanAttributeSet(font.getName(), font.getSize()); + } + /** * Changes the default font and font size for * non-Tibetan (Roman) text entry mode.