summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/bridge/org/openoffice/java/accessibility/AccessibleEditableTextImpl.java9
-rw-r--r--accessibility/bridge/org/openoffice/java/accessibility/AccessibleTextImpl.java8
2 files changed, 5 insertions, 12 deletions
diff --git a/accessibility/bridge/org/openoffice/java/accessibility/AccessibleEditableTextImpl.java b/accessibility/bridge/org/openoffice/java/accessibility/AccessibleEditableTextImpl.java
index c7202bc5f60e..8dd7e36049d2 100644
--- a/accessibility/bridge/org/openoffice/java/accessibility/AccessibleEditableTextImpl.java
+++ b/accessibility/bridge/org/openoffice/java/accessibility/AccessibleEditableTextImpl.java
@@ -166,13 +166,8 @@ public class AccessibleEditableTextImpl extends AccessibleTextImpl implements ja
attribute = as.getAttribute(StyleConstants.FontFamily);
if (null != attribute) {
com.sun.star.beans.PropertyValue propertyValue = new com.sun.star.beans.PropertyValue();
- propertyValue.Name = "CharFontPitch";
-
- if (StyleConstants.getFontFamily(as).equals( "Proportional" )) {
- propertyValue.Value = new Short("2");
- } else {
- propertyValue.Value = new Short("1");
- }
+ propertyValue.Name = "CharFontName";
+ propertyValue.Value = new String(StyleConstants.getFontFamily(as));
propertyValues.add(propertyValue);
}
diff --git a/accessibility/bridge/org/openoffice/java/accessibility/AccessibleTextImpl.java b/accessibility/bridge/org/openoffice/java/accessibility/AccessibleTextImpl.java
index c22eebe0a0ec..92c10de8432e 100644
--- a/accessibility/bridge/org/openoffice/java/accessibility/AccessibleTextImpl.java
+++ b/accessibility/bridge/org/openoffice/java/accessibility/AccessibleTextImpl.java
@@ -36,7 +36,7 @@ public class AccessibleTextImpl implements javax.accessibility.AccessibleText {
final static double toPointFactor = 1 / ((7 / 10) + 34.5);
final static String[] attributeList = {
"ParaAdjust", "CharBackColor", "CharWeight", "ParaFirstLineIndent",
- "CharFontPitch", "CharHeight", "CharColor", "CharPosture",
+ "CharFontName", "CharHeight", "CharColor", "CharPosture",
"ParaLeftMargin", "ParaLineSpacing", "ParaTopMargin", "ParaBottomMargin",
"CharStrikeout", "CharEscapement", "ParaTabStops", "CharUnderline"
};
@@ -296,10 +296,8 @@ public class AccessibleTextImpl implements javax.accessibility.AccessibleText {
(float) (toPointFactor * AnyConverter.toInt(property.Value)));
// Set font family attribute
- } else if (property.Name.equals("CharFontPitch")) {
- if (AnyConverter.toShort(property.Value) == 2) {
- StyleConstants.setFontFamily(as, "Proportional");
- }
+ } else if (property.Name.equals("CharFontName")) {
+ StyleConstants.setFontFamily(as, AnyConverter.toString(property.Value));
// Set font size attribute
} else if (property.Name.equals("CharHeight")) {