** Description changed: Fonts get wrong transform and kerning when using different attributes for the same face. [Test Case] - Notice how the following code has the T displaying over the e + In the IDE, paste the following code into an .ec file, and bring up the designer (F8). + + Notice how the T shows over the e, and how the "Non-Italic" string shows slanted. + ---- import "ecere" class Form1 : Window { caption = "Form1"; background = activeBorder; borderStyle = sizable; hasMaximize = true; hasMinimize = true; hasClose = true; clientSize = { 632, 438 }; + anchor = { horz = -3, vert = -5 }; - Label label1 { this, caption = "Test", font = { "Arial", 12 }, position = { 128, 88 } }; - Label label2 { this, caption = "Test", font = { "Arial", 64 }, position = { 120, 168 } }; + Label label1 { this, caption = "Kerning Test", font = { "Arial", 12 }, position = { 40, 88 } }; + Label label2 { this, caption = "Kerning Test", font = { "Arial", 64 }, position = { 144, 64 } }; + Label label3 { this, caption = "Italic", font = { "9x18", 20, italic = true }, size = { 75, 31 }, position = { 152, 240 } }; + Label label4 { this, caption = "Non-Italic", font = { "9x18", 20 }, size = { 139, 31 }, position = { 336, 240 } }; } Form1 form1 {}; [Regression Potential] - The Font objects of the same face share the FreeType object, and must reset these attributes when re-rendering the font or re-computing kernings between 2 characters. The fix required invoking FreeType to change these attributes. Everything seemded to be working fine. + The Font objects of the same face share the FreeType object, and must reset these attributes when re-rendering the font or re-computing kerning between 2 characters. The fix required invoking FreeType to change these attributes. Everything seemed to be working fine.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1107874 Title: [SRU] When using different fonts attributes for same face, fonts get mixed up in Ecere To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ecere-sdk/+bug/1107874/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs