22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
23 * |
23 * |
24 * Google Author(s): Behdad Esfahbod |
24 * Google Author(s): Behdad Esfahbod |
25 */ |
25 */ |
26 |
26 |
27 #define HB_SHAPER fallback |
27 #include "hb-shaper-impl.hh" |
28 #include "hb-shaper-impl-private.hh" |
|
29 |
|
30 |
|
31 HB_SHAPER_DATA_ENSURE_DEFINE(fallback, face) |
|
32 HB_SHAPER_DATA_ENSURE_DEFINE(fallback, font) |
|
33 |
28 |
34 |
29 |
35 /* |
30 /* |
36 * shaper face data |
31 * shaper face data |
37 */ |
32 */ |
38 |
33 |
39 struct hb_fallback_shaper_face_data_t {}; |
34 struct hb_fallback_face_data_t {}; |
40 |
35 |
41 hb_fallback_shaper_face_data_t * |
36 hb_fallback_face_data_t * |
42 _hb_fallback_shaper_face_data_create (hb_face_t *face HB_UNUSED) |
37 _hb_fallback_shaper_face_data_create (hb_face_t *face HB_UNUSED) |
43 { |
38 { |
44 return (hb_fallback_shaper_face_data_t *) HB_SHAPER_DATA_SUCCEEDED; |
39 return (hb_fallback_face_data_t *) HB_SHAPER_DATA_SUCCEEDED; |
45 } |
40 } |
46 |
41 |
47 void |
42 void |
48 _hb_fallback_shaper_face_data_destroy (hb_fallback_shaper_face_data_t *data HB_UNUSED) |
43 _hb_fallback_shaper_face_data_destroy (hb_fallback_face_data_t *data HB_UNUSED) |
49 { |
44 { |
50 } |
45 } |
51 |
46 |
52 |
47 |
53 /* |
48 /* |
54 * shaper font data |
49 * shaper font data |
55 */ |
50 */ |
56 |
51 |
57 struct hb_fallback_shaper_font_data_t {}; |
52 struct hb_fallback_font_data_t {}; |
58 |
53 |
59 hb_fallback_shaper_font_data_t * |
54 hb_fallback_font_data_t * |
60 _hb_fallback_shaper_font_data_create (hb_font_t *font HB_UNUSED) |
55 _hb_fallback_shaper_font_data_create (hb_font_t *font HB_UNUSED) |
61 { |
56 { |
62 return (hb_fallback_shaper_font_data_t *) HB_SHAPER_DATA_SUCCEEDED; |
57 return (hb_fallback_font_data_t *) HB_SHAPER_DATA_SUCCEEDED; |
63 } |
58 } |
64 |
59 |
65 void |
60 void |
66 _hb_fallback_shaper_font_data_destroy (hb_fallback_shaper_font_data_t *data HB_UNUSED) |
61 _hb_fallback_shaper_font_data_destroy (hb_fallback_font_data_t *data HB_UNUSED) |
67 { |
|
68 } |
|
69 |
|
70 |
|
71 /* |
|
72 * shaper shape_plan data |
|
73 */ |
|
74 |
|
75 struct hb_fallback_shaper_shape_plan_data_t {}; |
|
76 |
|
77 hb_fallback_shaper_shape_plan_data_t * |
|
78 _hb_fallback_shaper_shape_plan_data_create (hb_shape_plan_t *shape_plan HB_UNUSED, |
|
79 const hb_feature_t *user_features HB_UNUSED, |
|
80 unsigned int num_user_features HB_UNUSED, |
|
81 const int *coords HB_UNUSED, |
|
82 unsigned int num_coords HB_UNUSED) |
|
83 { |
|
84 return (hb_fallback_shaper_shape_plan_data_t *) HB_SHAPER_DATA_SUCCEEDED; |
|
85 } |
|
86 |
|
87 void |
|
88 _hb_fallback_shaper_shape_plan_data_destroy (hb_fallback_shaper_shape_plan_data_t *data HB_UNUSED) |
|
89 { |
62 { |
90 } |
63 } |
91 |
64 |
92 |
65 |
93 /* |
66 /* |