This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new e7b7f07a6 JSCSSCompilationSession: fix font-weight incorrectly output
with font-style value
e7b7f07a6 is described below
commit e7b7f07a60f56459938984b76bf17653fc45ab3e
Author: Josh Tynjala <[email protected]>
AuthorDate: Thu Apr 17 12:58:05 2025 -0700
JSCSSCompilationSession: fix font-weight incorrectly output with font-style
value
---
.../compiler/internal/driver/js/royale/JSCSSCompilationSession.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java
index 58b90c531..ebe902ce3 100644
---
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java
+++
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java
@@ -137,7 +137,7 @@ public class JSCSSCompilationSession extends
CSSCompilationSession
result.append(fontFace.getFontStyle() + ";\n");
result.append(" ");
result.append("font-weight: ");
- result.append(fontFace.getFontStyle() + ";\n");
+ result.append(fontFace.getFontWeight() + ";\n");
result.append(" ");
ArrayList<ICSSPropertyValue> sources = fontFace.getSources();
for (ICSSPropertyValue src : sources)