Commit Graph

31 Commits

Author SHA1 Message Date
7cba5cc109 Fixed line endings and applied gitignore 2014-07-26 09:43:40 +03:00
Birunthan Mohanathas
76b2ce47bc Common: Use PCH 2014-01-05 13:21:23 +02:00
Birunthan Mohanathas
3cfdc8c0b3 Gfx: Add missing HRESULT check 2013-11-24 15:43:37 +02:00
Birunthan Mohanathas
ca41a4575c Gfx: Handle failed creation of D2D text layout 2013-10-15 17:09:41 +03:00
Birunthan Mohanathas
6d243711a6 Gfx: Fix D2D crash with negative width/height on String meters 2013-10-15 17:09:40 +03:00
Birunthan Mohanathas
61bcb92dee Gfx: Make D2D draw lines if they will be clipped by at most 2 pixels 2013-08-12 18:52:51 +03:00
Birunthan Mohanathas
db9e220207 Gfx: Minor tweaks 2013-08-12 18:51:27 +03:00
Birunthan Mohanathas
12e0564f3e Gfx: Avoid clipping with D2D when not needed 2013-08-12 18:50:24 +03:00
Birunthan Mohanathas
42e8d5ee22 Gfx: Additional changes to 56218f7 2013-08-10 15:29:09 +03:00
Birunthan Mohanathas
56218f7af4 Gfx: Improve line trimming with D2D when one line is visible 2013-08-10 15:26:50 +03:00
Birunthan Mohanathas
34abccc29b Gfx: Check for errors in TextFormatD2D::SetProperties 2013-08-10 15:25:36 +03:00
Birunthan Mohanathas
2e2ced7403 Gfx: Additional change to 6e04fd9 2013-08-10 14:14:02 +03:00
Birunthan Mohanathas
aa4c4a6dfc Gfx: Make AccurateText=1 more consistent with GDI+ for D2D when a newline character is the last character of the text 2013-08-10 13:58:54 +03:00
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
Birunthan Mohanathas
21f5ff1303 Gfx: Fix incorrect text height/width with D2D in some cases due to typo 2013-08-10 12:03:40 +03:00
Birunthan Mohanathas
18d5ee383d Gfx: Wrap pointers with std::unique_ptr 2013-05-01 14:38:52 +03:00
Birunthan Mohanathas
eb5044b6fb Gfx: Change COM pointers to use WRL::ComPtr 2013-05-01 14:10:31 +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
d50c2ed33f Gfx: Add support for local fonts with D2D
This does not yet work with family names containing e.g. 'Light'.
2013-04-12 18:12:45 +03:00
Birunthan Mohanathas
4f26f777c9 Gfx: Move DWrite helpers to Util 2013-04-12 17:31:12 +03:00
Birunthan Mohanathas
0b3a4d86c4 Gfx: Add FontCollection implementation
The D2D implementation is a stub for now.
2013-04-09 20:35:49 +03:00
Birunthan Mohanathas
4d22c5ac61 Gfx: Improve D2D support for subfamilies like 'Light' 2013-04-08 18:24:09 +03:00
Birunthan Mohanathas
7c90f65659 Gfx: Tweaks 2013-04-08 17:29:26 +03:00
Birunthan Mohanathas
12bd890aef Gfx: Cosmetics 2013-04-07 14:32:41 +03:00
Birunthan Mohanathas
2f8f67e2cf Gfx: Make D2D font family name handling more consistent with GDI+ 2013-04-07 14:30:50 +03:00
Brian Ferguson
d0704a69d0 Cosmetics: Fixes VS2012 syntax highlighting 2013-04-05 15:07:51 -06:00
Birunthan Mohanathas
6f81e31f10 Gfx: Delay creation of ellipsis with D2D 2013-03-28 15:52:17 +02:00
Birunthan Mohanathas
e5100d9a9f Gfx: Make text rendering with D2D more efficient by reusing layout 2013-03-28 15:51:12 +02:00
Birunthan Mohanathas
39fe9750fd Gfx: Add temporary solution for local fonts 2013-03-28 15:09:46 +02:00
Birunthan Mohanathas
82970d1cce Gfx: Add initial work
Gfx provides support for rendering with both Direct2D and GDI+.
2013-03-25 17:37:20 +02:00