From 365fcff1508e3ef3b68e179715b81766edb9a7ce Mon Sep 17 00:00:00 2001 From: Markus Knauer Date: Wed, 11 Sep 2024 12:00:00 +0000 Subject: [PATCH] added ability to have pt in css for font sizes Also-by: Ralf Schlesinger Also-by: Rico Scholz --- .../eclipse/rap/rwt/internal/theme/css/PropertyResolver.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundles/org.eclipse.rap.rwt/src/org/eclipse/rap/rwt/internal/theme/css/PropertyResolver.java b/bundles/org.eclipse.rap.rwt/src/org/eclipse/rap/rwt/internal/theme/css/PropertyResolver.java index 0e8a50ab8a..f87a137845 100644 --- a/bundles/org.eclipse.rap.rwt/src/org/eclipse/rap/rwt/internal/theme/css/PropertyResolver.java +++ b/bundles/org.eclipse.rap.rwt/src/org/eclipse/rap/rwt/internal/theme/css/PropertyResolver.java @@ -1029,6 +1029,8 @@ private static Integer readSingleLengthUnit( LexicalUnit unit ) { } } else if( type == LexicalUnit.SAC_PIXEL ) { result = Integer.valueOf( ( int )unit.getFloatValue() ); + } else if( type == LexicalUnit.SAC_POINT ) { + result = Integer.valueOf( Math.round( 1.33f * ( int )unit.getFloatValue() ) ); } return result; }