src/java.desktop/share/native/libfontmanager/harfbuzz/hb-font.cc
changeset 50826 f5b95be8b6e2
parent 48274 51772bf1fb0c
child 54232 7c11a7cc7c1d
equal deleted inserted replaced
50825:aa0a35b071fb 50826:f5b95be8b6e2
   125   return font->parent->get_variation_glyph (unicode, variation_selector, glyph);
   125   return font->parent->get_variation_glyph (unicode, variation_selector, glyph);
   126 }
   126 }
   127 
   127 
   128 
   128 
   129 static hb_position_t
   129 static hb_position_t
   130 hb_font_get_glyph_h_advance_nil (hb_font_t *font HB_UNUSED,
   130 hb_font_get_glyph_h_advance_nil (hb_font_t *font,
   131                                  void *font_data HB_UNUSED,
   131                                  void *font_data HB_UNUSED,
   132                                  hb_codepoint_t glyph,
   132                                  hb_codepoint_t glyph,
   133                                  void *user_data HB_UNUSED)
   133                                  void *user_data HB_UNUSED)
   134 {
   134 {
   135   return font->x_scale;
   135   return font->x_scale;
   142 {
   142 {
   143   return font->parent_scale_x_distance (font->parent->get_glyph_h_advance (glyph));
   143   return font->parent_scale_x_distance (font->parent->get_glyph_h_advance (glyph));
   144 }
   144 }
   145 
   145 
   146 static hb_position_t
   146 static hb_position_t
   147 hb_font_get_glyph_v_advance_nil (hb_font_t *font HB_UNUSED,
   147 hb_font_get_glyph_v_advance_nil (hb_font_t *font,
   148                                  void *font_data HB_UNUSED,
   148                                  void *font_data HB_UNUSED,
   149                                  hb_codepoint_t glyph,
   149                                  hb_codepoint_t glyph,
   150                                  void *user_data HB_UNUSED)
   150                                  void *user_data HB_UNUSED)
   151 {
   151 {
   152   /* TODO use font_extents.ascender+descender */
   152   /* TODO use font_extents.ascender+descender */