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
63f5eed742
Fix build bustage caused by 38ec6c3
2013-08-10 13:13:04 +03:00
Birunthan Mohanathas
616f986181
Gfx: Make D2D clip text that overflows the bounding box similarly to GDI+
2013-08-10 12:13:59 +03:00
Birunthan Mohanathas
38ec6c3832
Gfx: Fix incorrect text X-position for StringAlign=Center with D2D
2013-08-10 12:08:15 +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
a3efbbac3f
Script: Improve 6560518
...
The Unicode state is not tracked using a stack instead of a raw boolean. This means that a Unicode script that e.g. updates a non-Unicode script measure will now work properly.
2013-08-07 17:48:13 +03:00
Birunthan Mohanathas
20393df751
Script: Change Unicode script support to require UTF-16 LE files rather than UTF-8
2013-08-07 17:09:25 +03:00
Birunthan Mohanathas
d0466c5588
Script: Additional change to f8c3867
for print()
2013-08-06 22:06:21 +03:00
Birunthan Mohanathas
bbb101cbd5
Cosmetics
2013-08-06 22:03:20 +03:00
Birunthan Mohanathas
f8c386793a
Script: Fix memory corruption caused by 6560518
2013-08-06 21:58:41 +03:00
Birunthan Mohanathas
6560518037
Script: Add Unicode support
...
If the script file is UTF-8 encoded, all Lua strings are converted to/from as if they were UTF-8. Otherwise things continue to work as they have until now. Additionally, UTF-8 scripts cannot use deprecated features at all (PROPERTIES, GetStringValue).
2013-08-06 20:43:57 +03:00
Birunthan Mohanathas
5fcf4b785d
Gfx: Fix that empty strings have a width and/or height with D2D
2013-08-04 21:46:59 +03:00
Birunthan Mohanathas
d97128e2ab
Additional change to 9c3808e
2013-08-04 21:25:43 +03:00
Birunthan Mohanathas
9c3808ea46
Logger: Fixed regression in 7960dfe
2013-08-04 21:24:06 +03:00
Brian Ferguson
645ce0591d
Webparser: Fixed bug when using a negative StringIndex
2013-08-03 09:14:04 -06:00
Brian Ferguson
a47e6ee29e
WebParser: Apply temporary [&MeasureName] syntax for referencing non-WebParser measures
2013-08-02 15:43:45 -06: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
bb53ddf71c
D2D: Minor tweaks
2013-08-02 14:35:08 -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
Brian Ferguson
ccb273117a
D2D: Tweaks
2013-08-02 09:54:14 -06:00
Birunthan Mohanathas
3e316ba19a
Fix typo in 7960dfe
2013-08-02 15:07:03 +03:00
Birunthan Mohanathas
7960dfe2ab
Logger: Tweaks
2013-08-02 15:00:36 +03:00
Birunthan Mohanathas
a1f15d9adc
Minor tweaks
2013-08-02 14:46:42 +03:00
Birunthan Mohanathas
923215c0da
ConfigParser: Implement ReadBool
...
This may break backwards compatibility in some cases. For example, the FreeDiskSpace measure treated only `Type=1` as true and `Type={0, 2, 3, ...}` as false. Now `Type=0` is false and everything else is true like with most other boolean options.
2013-07-31 13:36:53 +03:00
Birunthan Mohanathas
6b8d8a65d0
Gfx: Suppress int to float conversion warning
2013-07-31 13:15:26 +03:00
Birunthan Mohanathas
3c8c8a1f5e
Gfx: Additional change to 37fd105
2013-07-31 13:12:15 +03:00
Birunthan Mohanathas
37fd105650
Gfx: Add Util::GetAdjustedDWriteTextLayoutMetrics to reduce code duplication
2013-07-31 13:09:48 +03:00
Birunthan Mohanathas
82b8920443
Gfx: Added comment
2013-07-31 12:55:32 +03:00
Brian Ferguson
572f2da0d2
D2D: Tweaks
2013-07-30 17:01:16 -06:00
Birunthan Mohanathas
20cac72e9b
Gfx: Implement GDI+ fallback
2013-07-30 22:57:46 +03:00
Birunthan Mohanathas
44300e2f41
Gfx: Change to use D2D 1.1
2013-07-30 22:38:51 +03:00
Brian Ferguson
12dcf4628a
D2D: Tweaks
2013-07-28 22:33:27 -06:00
Brian Ferguson
2dda00a071
D2D: Tweaks to spacing
2013-07-28 12:01:35 -06:00
Brian Ferguson
6aab840dfb
D2D: Adjusted character spacing for AccurateText=0
2013-07-28 11:20:28 -06:00
Brian Ferguson
52b5e2584a
D2D: Removed centering of text within W/H (from 481442b
) due to conflict with different alignments and a meter's defined W/H.
2013-07-28 01:10:19 -06:00
Brian Ferguson
481442bc19
D2D: Tweaked formula that calculates the width/height of text using AccurateText=0 to better match GDI+. Also centers the text inside the adjusted width/height.
2013-07-28 00:00:22 -06:00
Brian Ferguson
2418c3692f
Manage Dialog: Added "UseD2D" option in the Settings Tab
...
If changed, all skins are refreshed
Option is disabled on systems that do not support D2D
2013-07-25 16:44:06 -06:00
Brian Ferguson
05cbcb9aa8
Temporarily added "__UseD2D" to [Rainmeter] section of skin that overrides global "UseD2D" value to help in testing.
2013-07-25 15:03:14 -06:00
Brian Ferguson
b27bf1ee63
Added "AccurateText" option [Rainmeter] section of a skin.
...
When AccurateText=0 (default) and UseD2D=0, inaccurate GDI+ measuring of text is used
When AccurateText=1 and UseD2D=0, Accurate measuring occurs similar to D2D
When AccurateText=0 and UseD2D=1, D2D adds padding to the text similar to GDI+
When AccurateText=1 and UseD2D=1, Accurate measuring occurs using D2D
2013-07-25 14:53:02 -06:00
Brian Ferguson
3bf2bd3902
Webparser: Commented out new DV temporarily
2013-07-21 09:51:03 -06:00
Brian Ferguson
e3c8ae2dfa
Fixed issues with Padding
2013-07-21 09:49:16 -06:00
spx
5f1d1c5888
Fixed hittest of Button meter due to lack of compatibility with new "Padding" option
2013-07-21 19:46:13 +09:00
Brian Ferguson
369f8c7082
Meter.cpp: Typo in commented section
2013-07-20 10:11:34 -06:00
Brian Ferguson
96f27fffcb
Reverted 32fc794
and cd35729
2013-07-20 10:09:37 -06:00
Brian Ferguson
d67db33ecf
Added "Padding" option to meters.
...
Usage: Padding = left, top, right, bottom
2013-07-20 10:07:51 -06:00
spx
8f2f65c1fc
!SetWallpaper: Additional fix to 3104a53
...
http://rainmeter.net/forum/viewtopic.php?f=14&t=16074
If it still causes crash, it might need to create a clone image first before saving as a bitmap.
2013-07-17 06:17:34 +09:00
Brian Ferguson
f76634055d
Reverted 6e9bc98
due to bug in GDI+ and newline
...
http://rainmeter.net/forum/viewtopic.php?p=89915#p89915
2013-07-16 12:28:05 -06:00