Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2016-04-05 14:03:34 +0000
committerMarkus Keller2016-04-05 14:25:47 +0000
commitdbfa78b3afef1e4aa3796e10a540ccbabcd517bd (patch)
tree6b2c81622c4d15400fc72318c269c956413f0e30 /bundles/org.eclipse.swt/.settings
parent46143ee4f84202ce641467f6ac3ebea3fdd8c209 (diff)
downloadeclipse.platform.swt-dbfa78b3afef1e4aa3796e10a540ccbabcd517bd.tar.gz
eclipse.platform.swt-dbfa78b3afef1e4aa3796e10a540ccbabcd517bd.tar.xz
eclipse.platform.swt-dbfa78b3afef1e4aa3796e10a540ccbabcd517bd.zip
Bug 490743: [gtk] StackOverflowError in StyledTextRenderer.getTextLayout(..) (was: Manifest editor can not be opened with I20160330-1230)
On GTK, line heights are managed by Pango via pango_layout_iter_get_line_extents(). To avoid rounding errors when computing lineHeight = ascent + descent at scale factors != 100%, we compute lineHeight and ascent in points, and then derive descent from that. The main changes are in code that reads/writes FontMetrics fields, i.e.: - GC#getFontMetrics() - TextLayout#getLineMetrics(int) - TextLayout#computeRuns() Change-Id: Id8576d9919673a30829238ef2c3085c2750c54b2
Diffstat (limited to 'bundles/org.eclipse.swt/.settings')
-rw-r--r--bundles/org.eclipse.swt/.settings/.api_filters8
1 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/.settings/.api_filters b/bundles/org.eclipse.swt/.settings/.api_filters
index 2f721ea053..96a64ecdf2 100644
--- a/bundles/org.eclipse.swt/.settings/.api_filters
+++ b/bundles/org.eclipse.swt/.settings/.api_filters
@@ -1561,6 +1561,14 @@
</message_arguments>
</filter>
</resource>
+ <resource path="Eclipse SWT/gtk/org/eclipse/swt/graphics/FontMetrics.java" type="org.eclipse.swt.graphics.FontMetrics">
+ <filter comment="has never been API, but @noreference Javadoc was missing on GTK" id="338792546">
+ <message_arguments>
+ <message_argument value="org.eclipse.swt.graphics.FontMetrics"/>
+ <message_argument value="gtk_new(int, int, int, int, int)"/>
+ </message_arguments>
+ </filter>
+ </resource>
<resource path="Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java" type="org.eclipse.swt.graphics.GC">
<filter id="338792546">
<message_arguments>

Back to the top