Commit Graph

8 Commits

Author SHA1 Message Date
Birunthan Mohanathas
6e04fd983f Gfx: Make AccurateText=0 more consistent with GDI+ for D2D
The height is now based on a formula that should be exactly equal to that provided by GDI+. The padding should now be equal on the left and right sides now. There may be some discrepancies in overall width, but it should always be reasonably to close to GDI+.

In addition, this makes D2D behavior match GDI+ when a newline character is the last character of the text.
2013-08-10 13:54:53 +03:00
Brian Ferguson
1e82a1659f D2D: Undo recent W/H calculations and revert back to 37fd105 calculations 2013-08-02 15:42:37 -06:00
Brian Ferguson
9d525b1c1a D2D: More tweaks (partially reverts ccb2731)
Should account for extra padding when #CRLF# is used.
2013-08-02 14:32:07 -06:00
Birunthan Mohanathas
37fd105650 Gfx: Add Util::GetAdjustedDWriteTextLayoutMetrics to reduce code duplication 2013-07-31 13:09:48 +03:00
Birunthan Mohanathas
44300e2f41 Gfx: Change to use D2D 1.1 2013-07-30 22:38:51 +03:00
Birunthan Mohanathas
d04bb46009 Gfx: Improve D2D local font support 2013-04-12 19:41:47 +03:00
Birunthan Mohanathas
b73735251e Gfx: Cosmetics 2013-04-12 19:18:56 +03:00
Birunthan Mohanathas
4b95f07ca6 Add missing files in 4f26f77 2013-04-12 18:06:51 +03:00