Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(freetype): remove unused codes #5885

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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