mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
[varc] Fix config
This commit is contained in:
1 parent
ed57ab9066
commit
bf27f4a3b2
3 files changed
+7
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
#include "VARC.hh"
|
||||
|
||||
#ifndef HB_NO_VAR
|
||||
#ifndef HB_NO_VAR_COMPOSITES
|
||||
|
||||
namespace OT {
|
||||
|
||||
|
||||
@@ -118,6 +118,10 @@
|
||||
#define HB_NO_VAR_COMPOSITES
|
||||
#endif
|
||||
|
||||
#ifdef HB_NO_VAR
|
||||
#define HB_NO_VAR_COMPOSITES
|
||||
#endif
|
||||
|
||||
#ifdef HB_DISABLE_DEPRECATED
|
||||
#define HB_IF_NOT_DEPRECATED(x)
|
||||
#else
|
||||
|
||||
+2
-2
@@ -524,7 +524,7 @@ hb_ot_draw_glyph (hb_font_t *font,
|
||||
{ // Need draw_session to be destructed before emboldening.
|
||||
hb_draw_session_t draw_session (embolden ? hb_outline_recording_pen_get_funcs () : draw_funcs,
|
||||
embolden ? &outline : draw_data, font->slant_xy);
|
||||
#ifndef HB_NO_VAR
|
||||
#ifndef HB_NO_VAR_COMPOSITES
|
||||
if (!font->face->table.VARC->get_path (font, glyph, draw_session))
|
||||
#endif
|
||||
// Keep the following in synch with VARC::get_path_at()
|
||||
@@ -568,7 +568,7 @@ hb_ot_paint_glyph (hb_font_t *font,
|
||||
if (font->face->table.sbix->paint_glyph (font, glyph, paint_funcs, paint_data)) return;
|
||||
#endif
|
||||
#endif
|
||||
#ifndef HB_NO_VAR
|
||||
#ifndef HB_NO_VAR_COMPOSITES
|
||||
if (font->face->table.VARC->paint_glyph (font, glyph, paint_funcs, paint_data, foreground)) return;
|
||||
#endif
|
||||
if (font->face->table.glyf->paint_glyph (font, glyph, paint_funcs, paint_data, foreground)) return;
|
||||
|
||||
Reference in new issue
Block a user