private static FontCollection CreateFontCollection(FontFamilyKey key)
        {
            var assets = FontFamilyLoader.LoadFontAssets(key);

            var fontLoader = new DWriteResourceFontLoader(Direct2D1Platform.DirectWriteFactory, assets);

            return(new FontCollection(Direct2D1Platform.DirectWriteFactory, fontLoader, fontLoader.Key));
        }
Ejemplo n.º 2
0
        private static SharpDX.DirectWrite.FontCollection CreateFontCollection(FontFamilyKey key)
        {
            var assets = FontFamilyLoader.LoadFontAssets(key);

            var fontLoader = new DWriteResourceFontLoader(s_factory, assets);

            return(new SharpDX.DirectWrite.FontCollection(s_factory, fontLoader, fontLoader.Key));
        }