예제 #1
0
 static WinGdiPlusPlatform()
 {
     var installFontsWin32 = new PixelFarm.Drawing.Win32.InstallFontsProviderWin32();
     s_installFontCollection.LoadInstalledFont(installFontsWin32.GetInstalledFontIter());
     WinGdiFontFace.SetInstalledFontCollection(s_installFontCollection); 
     PixelFarm.Agg.AggBuffMx.SetNaiveBufferImpl(new Win32AggBuffMx());
    
     //3. set default encoing
     WinGdiTextService.SetDefaultEncoding(System.Text.Encoding.ASCII);
 }
예제 #2
0
 static SkiaGraphicsPlatform()
 {
     //TODO: review here again about font provider ***
     var installFontsWin32 = new PixelFarm.Drawing.Win32.InstallFontsProviderWin32();
     s_installFontCollection.LoadInstalledFont(installFontsWin32.GetInstalledFontIter());
 }