• R/O
  • HTTP
  • SSH
  • HTTPS

FooEditEngine: Commit


Commit MetaInfo

Revisionac0b626480aa0d9bff58e6743461a72551a2beb5 (tree)
Time2020-08-22 21:00:18
Authortest <test@yaho...>
Commitertest

Log Message

レンダー再作成時にDirectWriteのリソースも再作成するようにした

Change Summary

Incremental Difference

--- a/Core/Direct2D/D2DRenderCommon.cs
+++ b/Core/Direct2D/D2DRenderCommon.cs
@@ -253,6 +253,9 @@ namespace FooEditEngine
253253 if(this.format != null)
254254 this.format.Dispose();
255255
256+ if (this.HiddenChars != null)
257+ this.HiddenChars = null;
258+
256259 float dpix, dpiy;
257260 this.GetDpi(out dpix, out dpiy);
258261
--- a/UWP/FooEditEngine.UWP/Direct2D/D2DRender.cs
+++ b/UWP/FooEditEngine.UWP/Direct2D/D2DRender.cs
@@ -125,6 +125,7 @@ namespace FooEditEngine
125125 {
126126 this.DestructRenderAndResource();
127127 this.ConstructRenderAndResoruce(width, height);
128+ this.ReinitTextFormat();
128129 }
129130 }
130131 }
--- a/UWP/FooEditEngine.UWP/Direct2D/D2DRenderBase.cs
+++ b/UWP/FooEditEngine.UWP/Direct2D/D2DRenderBase.cs
@@ -89,6 +89,11 @@ namespace FooEditEngine
8989 this.textRender = new CustomTextRenderer(this.render, this.Brushes, this.Strokes, this.Foreground);
9090 }
9191
92+ public void ReinitTextFormat()
93+ {
94+ this.InitTextFormat(this.fontFamily.Source, (float)this.fontSize, this.GetDWFontWeigth(this.fontWeigth), this.GetDWFontStyle(this.fontStyle));
95+ }
96+
9297 public virtual void DestructRenderAndResource()
9398 {
9499 this.Brushes.Clear();
--- a/UWP/FooEditEngine.UWP/FooEditEngine.UWP.nuspec
+++ b/UWP/FooEditEngine.UWP/FooEditEngine.UWP.nuspec
@@ -2,7 +2,7 @@
22 <package >
33 <metadata>
44 <id>FooEditEngine.UWP</id>
5- <version>1.2.10</version>
5+ <version>1.2.11</version>
66 <title>FooTextBox</title>
77 <authors>Foo Project</authors>
88 <owners>Foo Project</owners>
--- a/UWP/FooEditEngine.UWP/Properties/AssemblyInfo.cs
+++ b/UWP/FooEditEngine.UWP/Properties/AssemblyInfo.cs
@@ -24,6 +24,6 @@ using System.Runtime.InteropServices;
2424 // You can specify all the values or you can default the Build and Revision Numbers
2525 // by using the '*' as shown below:
2626 // [assembly: AssemblyVersion("1.0.*")]
27-[assembly: AssemblyVersion("1.1.2.10")]
28-[assembly: AssemblyFileVersion("1.1.2.10")]
27+[assembly: AssemblyVersion("1.1.2.11")]
28+[assembly: AssemblyFileVersion("1.1.2.11")]
2929 [assembly: ComVisible(false)]
\ No newline at end of file
--- a/WPF/FooEditEngine/FooEditEngine.nuspec
+++ b/WPF/FooEditEngine/FooEditEngine.nuspec
@@ -2,7 +2,7 @@
22 <package >
33 <metadata>
44 <id>FooEditEngine.WPF</id>
5- <version>1.203.7.0</version>
5+ <version>1.203.8.0</version>
66 <title>FooTextBox</title>
77 <authors>Foo Project</authors>
88 <owners>Foo Project</owners>
--- a/WPF/FooEditEngine/Properties/AssemblyInfo.cs
+++ b/WPF/FooEditEngine/Properties/AssemblyInfo.cs
@@ -51,8 +51,8 @@ using System.Windows;
5151 // すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
5252 // 既定値にすることができます:
5353 // [assembly: AssemblyVersion("1.0.*")]
54-[assembly: AssemblyVersion("1.203.7.0")]
55-[assembly: AssemblyFileVersion("1.203.7.0")]
54+[assembly: AssemblyVersion("1.203.8.0")]
55+[assembly: AssemblyFileVersion("1.203.8.0")]
5656
5757 #if DEBUG
5858 [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("UnitTest")]
--- a/Windows/FooEditEngine/FooEditEngine.nuspec
+++ b/Windows/FooEditEngine/FooEditEngine.nuspec
@@ -2,7 +2,7 @@
22 <package >
33 <metadata>
44 <id>FooEditEngine.Windows</id>
5- <version>1.34.8.0</version>
5+ <version>1.34.9.0</version>
66 <title>FooTextBox</title>
77 <authors>Foo Project</authors>
88 <owners>Foo Project</owners>
--- a/Windows/FooEditEngine/Properties/AssemblyInfo.cs
+++ b/Windows/FooEditEngine/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
3232 // すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
3333 // 既定値にすることができます:
3434 // [assembly: AssemblyVersion("1.0.*")]
35-[assembly: AssemblyVersion("1.34.8.0")]
36-[assembly: AssemblyFileVersion("1.34.8.0")]
35+[assembly: AssemblyVersion("1.34.9.0")]
36+[assembly: AssemblyFileVersion("1.34.9.0")]
Show on old repository browser