summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Hausmann <shausman@rhea.troll.no>2007-02-19 15:42:11 +0100
committerSimon Hausmann <shausman@rhea.troll.no>2007-03-28 12:52:31 +0200
commit721549a93155e408da25a3fe3e4fd578d59ab620 (patch)
tree0a8c2a15b12724b3a029d5337886abaa9074bb8e /src
parent13d0415a359ac156a73977d650a659c6c5d630bf (diff)
Added flags to the getAdvances callback
Diffstat (limited to 'src')
-rw-r--r--src/harfbuzz-shaper-private.h3
-rw-r--r--src/harfbuzz-shaper.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/harfbuzz-shaper-private.h b/src/harfbuzz-shaper-private.h
index b96971f..7c32918 100644
--- a/src/harfbuzz-shaper-private.h
+++ b/src/harfbuzz-shaper-private.h
@@ -135,7 +135,8 @@ inline void HB_GetAdvances(HB_ShaperItem *shaper_item)
{
shaper_item->font->klass->getAdvances(shaper_item->font,
shaper_item->glyphs, shaper_item->num_glyphs,
- shaper_item->advances);
+ shaper_item->advances,
+ shaper_item->face->current_flags);
}
#define HB_STACKARRAY(Type, Name, Length) \
diff --git a/src/harfbuzz-shaper.h b/src/harfbuzz-shaper.h
index 626a99b..285f2fe 100644
--- a/src/harfbuzz-shaper.h
+++ b/src/harfbuzz-shaper.h
@@ -180,7 +180,7 @@ typedef struct HB_StreamRec_ *HB_Stream;
typedef struct {
HB_Bool (*stringToGlyphs)(HB_Font font, const HB_UChar16 *string, uint32_t length, HB_Glyph *glyphs, uint32_t *numGlyphs, HB_Bool rightToLeft);
- void (*getAdvances)(HB_Font font, const HB_Glyph *glyphs, int numGlyphs, HB_Fixed *advances);
+ void (*getAdvances)(HB_Font font, const HB_Glyph *glyphs, int numGlyphs, HB_Fixed *advances, int flags /*HB_ShaperFlag*/);
HB_Bool (*canRender)(HB_Font font, const HB_UChar16 *string, uint32_t length);
HB_Stream (*getSFntTable)(HB_Font font, HB_Tag tag);
} HB_FontClass;