Skip to content

Commit

Permalink
Expose functionality for FontStyle and FontWeight via the RenderUtils…
Browse files Browse the repository at this point in the history
… class

Issue #52
  • Loading branch information
Irina Balaur committed Jul 4, 2019
1 parent 67ddae1 commit 3e9fe38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions org.sbgn/src/org/sbgn/RenderUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
}
Expand Down

0 comments on commit 3e9fe38

Please sign in to comment.