Commit e9bc82c6 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

fixed text positioning for fonts where glyphs extend the logical rectangle

2004-01-25  Sven Neumann  <sven@gimp.org>

	* app/text/gimptextlayout.c (gimp_text_layout_position): fixed
	text positioning for fonts where glyphs extend the logical
	rectangle (bug #132495).
parent 2b34255e
2004-01-25 Sven Neumann <sven@gimp.org>
* app/text/gimptextlayout.c (gimp_text_layout_position): fixed
text positioning for fonts where glyphs extend the logical
rectangle.
2004-01-25 Sven Neumann <sven@gimp.org>
 
* app/gui/info-window.c (info_window_create): don't update the fields
......@@ -242,7 +242,6 @@ gimp_text_layout_get_size (GimpTextLayout *layout,
if (width)
*width = layout->extents.width;
if (height)
*height = layout->extents.height;
......@@ -292,8 +291,8 @@ gimp_text_layout_position (GimpTextLayout *layout)
x2 = MAX (ink.x + ink.width, logical.x + logical.width);
y2 = MAX (ink.y + ink.height, logical.y + logical.height);
layout->extents.x = x1;
layout->extents.y = y1;
layout->extents.x = - x1;
layout->extents.y = - y1;
layout->extents.width = x2 - x1;
layout->extents.height = y2 - y1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment