OSDN Git Service

レンダー再作成時にDirectWriteのリソースも再作成するようにした
authortest <test@yahoo.co.jp>
Sat, 22 Aug 2020 12:00:18 +0000 (21:00 +0900)
committertest <test@yahoo.co.jp>
Sat, 22 Aug 2020 12:00:18 +0000 (21:00 +0900)
Core/Direct2D/D2DRenderCommon.cs
UWP/FooEditEngine.UWP/Direct2D/D2DRender.cs
UWP/FooEditEngine.UWP/Direct2D/D2DRenderBase.cs
UWP/FooEditEngine.UWP/FooEditEngine.UWP.nuspec
UWP/FooEditEngine.UWP/Properties/AssemblyInfo.cs
WPF/FooEditEngine/FooEditEngine.nuspec
WPF/FooEditEngine/Properties/AssemblyInfo.cs
Windows/FooEditEngine/FooEditEngine.nuspec
Windows/FooEditEngine/Properties/AssemblyInfo.cs

index 0f2efbb..ed6d9da 100644 (file)
@@ -253,6 +253,9 @@ namespace FooEditEngine
             if(this.format != null)
                 this.format.Dispose();
 
+            if (this.HiddenChars != null)
+                this.HiddenChars = null;
+
             float dpix, dpiy;
             this.GetDpi(out dpix, out dpiy);
 
index 18294e8..94b1fb6 100644 (file)
@@ -125,6 +125,7 @@ namespace FooEditEngine
         {
             this.DestructRenderAndResource();
             this.ConstructRenderAndResoruce(width, height);
+            this.ReinitTextFormat();
         }
     }
 }
index f939545..2e7e937 100644 (file)
@@ -89,6 +89,11 @@ namespace FooEditEngine
             this.textRender = new CustomTextRenderer(this.render, this.Brushes, this.Strokes, this.Foreground);
         }
 
+        public void ReinitTextFormat()
+        {
+            this.InitTextFormat(this.fontFamily.Source, (float)this.fontSize, this.GetDWFontWeigth(this.fontWeigth), this.GetDWFontStyle(this.fontStyle));
+        }
+
         public virtual void DestructRenderAndResource()
         {
             this.Brushes.Clear();
index 7ca9a2d..5a719de 100644 (file)
@@ -2,7 +2,7 @@
 <package >
   <metadata>
     <id>FooEditEngine.UWP</id>
-    <version>1.2.10</version>
+    <version>1.2.11</version>
     <title>FooTextBox</title>
     <authors>Foo Project</authors>
     <owners>Foo Project</owners>
index 85ac5fd..5f69440 100644 (file)
@@ -24,6 +24,6 @@ using System.Runtime.InteropServices;
 // You can specify all the values or you can default the Build and Revision Numbers 
 // by using the '*' as shown below:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.1.2.10")]
-[assembly: AssemblyFileVersion("1.1.2.10")]
+[assembly: AssemblyVersion("1.1.2.11")]
+[assembly: AssemblyFileVersion("1.1.2.11")]
 [assembly: ComVisible(false)]
\ No newline at end of file
index f481296..77840bb 100644 (file)
@@ -2,7 +2,7 @@
 <package >
   <metadata>
     <id>FooEditEngine.WPF</id>
-    <version>1.203.7.0</version>
+    <version>1.203.8.0</version>
     <title>FooTextBox</title>
     <authors>Foo Project</authors>
     <owners>Foo Project</owners>
index 8105d11..805f820 100644 (file)
@@ -51,8 +51,8 @@ using System.Windows;
 // すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を 
 // 既定値にすることができます:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.203.7.0")]
-[assembly: AssemblyFileVersion("1.203.7.0")]
+[assembly: AssemblyVersion("1.203.8.0")]
+[assembly: AssemblyFileVersion("1.203.8.0")]
 
 #if DEBUG
 [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("UnitTest")]
index 7501a69..e8ba11b 100644 (file)
@@ -2,7 +2,7 @@
 <package >
   <metadata>
     <id>FooEditEngine.Windows</id>
-    <version>1.34.8.0</version>
+    <version>1.34.9.0</version>
     <title>FooTextBox</title>
     <authors>Foo Project</authors>
     <owners>Foo Project</owners>
index 0b43847..853cf0e 100644 (file)
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
 // すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を 
 // 既定値にすることができます:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.34.8.0")]
-[assembly: AssemblyFileVersion("1.34.8.0")]
+[assembly: AssemblyVersion("1.34.9.0")]
+[assembly: AssemblyFileVersion("1.34.9.0")]