public static int stbtt_PackFontRange(stbtt_pack_context spc, byte *fontdata, int font_index, float font_size, int first_unicode_codepoint_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range) { stbtt_pack_range range = new stbtt_pack_range(); range.first_unicode_codepoint_in_range = (int)(first_unicode_codepoint_in_range); range.array_of_unicode_codepoints = (null); range.num_chars = (int)(num_chars_in_range); range.chardata_for_range = chardata_for_range; range.font_size = (float)(font_size); return((int)(stbtt_PackFontRanges(spc, fontdata, (int)(font_index), &range, (int)(1)))); }
public static int stbtt_PackFontRange(stbtt_pack_context spc, byte *fontdata, int font_index, float font_size, int first_unicode_codepoint_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range) { var range = new stbtt_pack_range(); range.first_unicode_codepoint_in_range = first_unicode_codepoint_in_range; range.array_of_unicode_codepoints = null; range.num_chars = num_chars_in_range; range.chardata_for_range = chardata_for_range; range.font_size = font_size; return(stbtt_PackFontRanges(spc, fontdata, font_index, &range, 1)); }
public int stbtt_PackFontRange(byte[] fontdata, int font_index, float font_size, int first_unicode_codepoint_in_range, int num_chars_in_range, stbtt_packedchar[] chardata_for_range) { var range = new stbtt_pack_range(); range.first_unicode_codepoint_in_range = first_unicode_codepoint_in_range; range.array_of_unicode_codepoints = null; range.num_chars = num_chars_in_range; range.chardata_for_range = chardata_for_range; range.font_size = font_size; var ranges = new FakePtr <stbtt_pack_range>(range); return(stbtt_PackFontRanges(fontdata, font_index, ranges, 1)); }