From 68c35a5ac34c1b66f268267e0365160c3a5622fa Mon Sep 17 00:00:00 2001 From: Arnaud Roques Date: Fri, 17 Mar 2023 22:42:27 +0100 Subject: [PATCH] fix: partial correction https://github.com/plantuml/plantuml/issues/1335 --- .../plantuml/style/FromSkinparamToStyle.java | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/net/sourceforge/plantuml/style/FromSkinparamToStyle.java b/src/net/sourceforge/plantuml/style/FromSkinparamToStyle.java index f67bf84af..c45d0957d 100644 --- a/src/net/sourceforge/plantuml/style/FromSkinparamToStyle.java +++ b/src/net/sourceforge/plantuml/style/FromSkinparamToStyle.java @@ -46,7 +46,7 @@ import java.util.StringTokenizer; import net.sourceforge.plantuml.stereo.StereotypeDecoration; public class FromSkinparamToStyle { - // ::remove file when __HAXE__ + // ::remove file when __HAXE__ static class Data { final private SName[] styleNames; @@ -181,8 +181,17 @@ public class FromSkinparamToStyle { addConvert("classBackgroundColor", PName.BackGroundColor, SName.element, SName.class_); addConvert("classBorderColor", PName.LineColor, SName.element, SName.class_); - addConFont("class", SName.element, SName.class_); - addConFont("classAttribute", SName.element, SName.class_); + + addConvert("classFontSize", PName.FontSize, SName.element, SName.class_, SName.header); + addConvert("classFontStyle", PName.FontStyle, SName.element, SName.class_, SName.header); + addConvert("classFontColor", PName.FontColor, SName.element, SName.class_, SName.header); + addConvert("classFontName", PName.FontName, SName.element, SName.class_, SName.header); + + addConvert("classAttributeFontSize", PName.FontSize, SName.element, SName.class_); + addConvert("classAttributeFontStyle", PName.FontStyle, SName.element, SName.class_); + addConvert("classAttributeFontColor", PName.FontColor, SName.element, SName.class_); + addConvert("classAttributeFontName", PName.FontName, SName.element, SName.class_); + addConvert("classBorderThickness", PName.LineThickness, SName.element, SName.class_); addConvert("classHeaderBackgroundColor", PName.BackGroundColor, SName.element, SName.class_, SName.header);