From 3e9fe382c661e2c8046b6d97c0e9cbbf5bf4e1e5 Mon Sep 17 00:00:00 2001 From: Irina Balaur Date: Thu, 4 Jul 2019 23:44:01 +0200 Subject: [PATCH] Expose functionality for FontStyle and FontWeight via the RenderUtils class Issue #52 --- org.sbgn/src/org/sbgn/RenderUtil.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org.sbgn/src/org/sbgn/RenderUtil.java b/org.sbgn/src/org/sbgn/RenderUtil.java index 355c582..0ca2463 100644 --- a/org.sbgn/src/org/sbgn/RenderUtil.java +++ b/org.sbgn/src/org/sbgn/RenderUtil.java @@ -487,6 +487,10 @@ public static Object getStyleProperty(Style style, String property) return style.getG().getFontFamily(); if (property.equalsIgnoreCase("FontSize")) return style.getG().getFontSize(); + if (property.equalsIgnoreCase("FontStyle")) + return style.getG().getFontStyle(); + if (property.equalsIgnoreCase("FontWeight")) + return style.getG().getFontWeight(); return ""; }