GlyphTypeface.ComputeSubset returns all font bytes RRS feed

  • Question

  • I use code

    var glyphTypeface = new GlyphTypeface(new Uri(@"NotoSansJP-Black.otf")); 
    byte[] fontBytes = glyphTypeface.ComputeSubset(new[] { glyphTypeface.CharacterToGlyphMap[Convert.ToInt32("309f", 16)] }); 

    The Unicode 309f is and it is Japanese glyph. Noto Sans CJK JP could be obtained at https://www.google.com/get/noto/help/cjk/.

    The resulting X.otf file is the same size as the original file.

    What’s wrong?

    Thursday, November 30, 2017 3:22 PM


All replies