Skip to content

Commit

Permalink
chore(freetype): remove unused codes (#5885)
Browse files Browse the repository at this point in the history
  • Loading branch information
W-Mai committed Mar 15, 2024
1 parent 082e24c commit e5ab690
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
6 changes: 0 additions & 6 deletions src/libs/freetype/lv_freetype.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,6 @@ int32_t lv_freetype_italic_transform_on_pos(lv_point_t point)
return point.x + FT_F16DOT16_TO_INT(point.y * LV_FREETYPE_OBLIQUE_SLANT_DEF);
}

const char * lv_freetype_get_pathname(FTC_FaceID face_id)
{
LV_ASSERT_NULL(face_id);
return (const char *)face_id;
}

/**********************
* STATIC FUNCTIONS
**********************/
Expand Down
11 changes: 0 additions & 11 deletions src/libs/freetype/lv_freetype_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,9 @@ typedef struct _lv_freetype_font_dsc_t {
*/
lv_freetype_context_t * lv_freetype_get_context(void);

/**
* Look up a FreeType size object for a given font descriptor and size.
*
* @param dsc The font descriptor to use.
* @param size The size of the font.
* @return A pointer to the FreeType size object.
*/
FT_Size lv_freetype_lookup_size(const lv_freetype_font_dsc_t * dsc);

void lv_freetype_italic_transform(FT_Face face);
int32_t lv_freetype_italic_transform_on_pos(lv_point_t point);

const char * lv_freetype_get_pathname(FTC_FaceID face_id);

lv_cache_t * lv_freetype_create_glyph_cache(uint32_t cache_size);
void lv_freetype_set_cbs_glyph(lv_freetype_font_dsc_t * dsc);

Expand Down

0 comments on commit e5ab690

Please sign in to comment.