diff --git a/src/org/idp/laf/TitanEditor.java b/src/org/idp/laf/TitanEditor.java index 2bc3174..3429932 100644 --- a/src/org/idp/laf/TitanEditor.java +++ b/src/org/idp/laf/TitanEditor.java @@ -246,14 +246,31 @@ public class TitanEditor { AttributeSetConfigured asc = cluster.get((String) at.getAttribute(const_DisplayName)); if (asc != null) { - res.add(apply_colors(asc, at, annotation)); + if (!at.getAttribute(const_DisplayName).equals("Default")) + { + res.add(apply_colors(asc, at, annotation)); + } + else + { + res.add(apply_text_size_fix(apply_colors(asc, at, annotation))); + } } } } return res; } - private static AttributeSet apply_colors (AttributeSetConfigured asc, AttributeSet at, boolean annotation) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException + private static SimpleAttributeSet apply_text_size_fix (SimpleAttributeSet old) + { + if (old.isDefined(StyleConstants.FontSize)) + { + old.removeAttribute(StyleConstants.FontSize); + } + old.addAttribute(StyleConstants.FontSize, 18); + return old; + } + + private static SimpleAttributeSet apply_colors (AttributeSetConfigured asc, AttributeSet at, boolean annotation) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { SimpleAttributeSet sas = new SimpleAttributeSet(at);