Tuen API of GetShapedGlyphsBasic and GetShapedGlyphsComplex

This commit is contained in:
Vincent Wei
2019-03-12 15:41:57 +08:00
parent da7c2175dd
commit 005519e7cc
5 changed files with 440 additions and 310 deletions
+418 -297
View File
File diff suppressed because it is too large Load Diff
+6
View File
@@ -255,6 +255,12 @@ static const Uint32 iso15924_tags[] =
PACK ('M','e','d','f'), /* UCHAR_SCRIPT_MEDEFAIDRIN */
PACK ('S','o','g','o'), /* UCHAR_SCRIPT_OLD_SOGDIAN */
PACK ('S','o','g','d'), /* UCHAR_SCRIPT_SOGDIAN */
/* Unicode 12.0 additions */
PACK ('E','l','y','m'), /* UCHAR_SCRIPT_ELYMAIC */
PACK ('N','a','n','d'), /* UCHAR_SCRIPT_NANDINAGARI */
PACK ('H','m','n','p'), /* UCHAR_SCRIPT_NYIAKENG_PUACHUE_HMONG */
PACK ('W','c','h','o'), /* UCHAR_SCRIPT_WANCHO */
#undef PACK
};
+10 -9
View File
@@ -4,17 +4,18 @@ noinst_LTLIBRARIES = libnewgdi.la
if MG_MINIMALGDI
SRC_FILES = gdi.c attr.c clip.c coor.c rect.c \
bitmap.c pixel.c pixel_ops.c \
region.c polygon.c
bitmap.c pixel.c pixel_ops.c \
region.c polygon.c
else
SRC_FILES = gdi.c attr.c clip.c map.c coor.c rect.c \
palette.c readbmp.c icon.c screen.c bitmap.c \
pixel.c line.c arc.c pixel_ops.c \
region.c generators.c polygon.c flood.c \
advapi.c midash.c mispans.c miwideline.c \
mifillarc.c mifpolycon.c miarc.c rotatebmp.c \
text.c achar.c glyph.c bidi.c glyph-unicode.c shaped-glyph.c \
textout.c tabbedtextout.c drawtext.c
palette.c readbmp.c icon.c screen.c bitmap.c \
pixel.c line.c arc.c pixel_ops.c \
region.c generators.c polygon.c flood.c \
advapi.c midash.c mispans.c miwideline.c \
mifillarc.c mifpolycon.c miarc.c rotatebmp.c \
text.c achar.c glyph.c legacy-bidi.c \
textout.c tabbedtextout.c drawtext.c \
glyph-unicode.c shaped-glyph.c
endif
HDR_FILES = drawtext.h mi.h midc.h mistruct.h miwideline.h \
+6 -4
View File
@@ -57,16 +57,18 @@
int GUIAPI GetShapedGlyphsBasic(LOGFONT* logfont,
LanguageCode content_language, UCharScriptType writing_system,
const Uchar32* ucs, const Uint8* break_oppos, int nr_chars,
SHAPEDGLYPH** glyphs, int* nr_glyphs)
const Uchar32* logical_ucs, int nr_ucs,
Uint16* break_oppos, SHAPEDGLYPH* visual_glyphs,
int* pos_l2v, int* nr_glyphs)
{
return 0;
}
int GUIAPI GetShapedGlyphsComplex(LOGFONT* logfont,
LanguageCode content_language, UCharScriptType writing_system,
const Uchar32* ucs, const Uint8* break_oppos, int nr_chars,
SHAPEDGLYPH** glyphs, int* nr_glyphs)
const Uchar32* logical_ucs, int nr_ucs,
Uint16* break_oppos, SHAPEDGLYPH* visual_glyphs,
int* pos_l2v, int* nr_glyphs)
{
return 0;
}