Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenfont/intern/blf_thumbs.c
| Show All 40 Lines | typedef struct UnicodeSample { | ||||
| FT_ULong mask; /* ‘OS/2’ table ulUnicodeRangeX bit mask. */ | FT_ULong mask; /* ‘OS/2’ table ulUnicodeRangeX bit mask. */ | ||||
| } UnicodeSample; | } UnicodeSample; | ||||
| /* The seemingly arbitrary order that follows is to help quickly find the most-likely designed | /* The seemingly arbitrary order that follows is to help quickly find the most-likely designed | ||||
| * intent of the font. Many feature-specific fonts contain Latin, Greek, & Coptic characters so | * intent of the font. Many feature-specific fonts contain Latin, Greek, & Coptic characters so | ||||
| * those need to be checked last. */ | * those need to be checked last. */ | ||||
| static const UnicodeSample unicode_samples[] = { | static const UnicodeSample unicode_samples[] = { | ||||
| /* Chinese, Japanese, Korean, ordered specific to general. */ | /* Chinese, Japanese, Korean, ordered specific to general. */ | ||||
| {U"\uc870\uc120\uae00", 2, TT_UCR_HANGUL}, /* 조선글 */ | {U"\ud55c\uad6d\uc5b4", 2, TT_UCR_HANGUL}, /* 한국어 */ | ||||
| {U"\u3042\u30a2\u4e9c", 2, TT_UCR_HIRAGANA}, /* あア亜 */ | {U"\u3042\u30a2\u4e9c", 2, TT_UCR_HIRAGANA}, /* あア亜 */ | ||||
| {U"\u30a2\u30a4\u4e9c", 2, TT_UCR_KATAKANA}, /* アイ亜 */ | {U"\u30a2\u30a4\u4e9c", 2, TT_UCR_KATAKANA}, /* アイ亜 */ | ||||
| {U"\u1956\u195b\u1966", 3, TT_UCR_TAI_LE}, /* ᥖᥛᥦ */ | {U"\u1956\u195b\u1966", 3, TT_UCR_TAI_LE}, /* ᥖᥛᥦ */ | ||||
| {U"\u3105\u3106\u3107", 2, TT_UCR_BOPOMOFO}, /* ㄅㄆㄇ */ | {U"\u3105\u3106\u3107", 2, TT_UCR_BOPOMOFO}, /* ㄅㄆㄇ */ | ||||
| {U"\ua840\ua841\ua85d", 2, TT_UCR_PHAGSPA}, /* ꡀꡁꡝ */ | {U"\ua840\ua841\ua85d", 2, TT_UCR_PHAGSPA}, /* ꡀꡁꡝ */ | ||||
| {U"\u5e03\u4e01\u4f53", 2, TT_UCR_CJK_UNIFIED_IDEOGRAPHS}, /* 布丁体 */ | {U"\u5e03\u4e01\u4f53", 2, TT_UCR_CJK_UNIFIED_IDEOGRAPHS}, /* 布丁体 */ | ||||
| /* Languages in the BMP with a coverage bit. */ | /* Languages in the BMP with a coverage bit. */ | ||||
| {U"\u05d0\u05da\u05e4", 1, TT_UCR_HEBREW}, | {U"\u05d0\u05da\u05e4", 1, TT_UCR_HEBREW}, | ||||
| ▲ Show 20 Lines • Show All 350 Lines • Show Last 20 Lines | |||||