mirror of https://github.com/Chlumsky/msdfgen.git
Rename msdf_ft_font_load(_data) to msdf_ft_load_font(_data)
This commit is contained in:
parent
4e218cb11b
commit
a142c3d4b3
|
|
@ -34,7 +34,7 @@ MSDF_API int msdf_ft_init(msdf_ft_handle* handle) {
|
||||||
return MSDF_SUCCESS;
|
return MSDF_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
MSDF_API int msdf_ft_font_load(msdf_ft_handle handle, const char* filename, msdf_ft_font_handle* font) {
|
MSDF_API int msdf_ft_load_font(msdf_ft_handle handle, const char* filename, msdf_ft_font_handle* font) {
|
||||||
if(handle == nullptr || filename == nullptr || font == nullptr) {
|
if(handle == nullptr || filename == nullptr || font == nullptr) {
|
||||||
return MSDF_ERR_INVALID_ARG;
|
return MSDF_ERR_INVALID_ARG;
|
||||||
}
|
}
|
||||||
|
|
@ -42,7 +42,7 @@ MSDF_API int msdf_ft_font_load(msdf_ft_handle handle, const char* filename, msdf
|
||||||
return MSDF_SUCCESS;
|
return MSDF_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
MSDF_API int msdf_ft_font_load_data(msdf_ft_handle handle, const void* data, const size_t size, msdf_ft_font_handle* font) {
|
MSDF_API int msdf_ft_load_font_data(msdf_ft_handle handle, const void* data, const size_t size, msdf_ft_font_handle* font) {
|
||||||
if(handle == nullptr || data == nullptr || font == nullptr) {
|
if(handle == nullptr || data == nullptr || font == nullptr) {
|
||||||
return MSDF_ERR_INVALID_ARG;
|
return MSDF_ERR_INVALID_ARG;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ MSDF_API int msdf_ft_init(msdf_ft_handle* handle);
|
||||||
* @param font A pointer to a font handle to be populated with the address of the newly loaded font.
|
* @param font A pointer to a font handle to be populated with the address of the newly loaded font.
|
||||||
* @returns @code MSDF_SUCCESS@endcode on success, otherwise one of the constants prefixed with @code MSDF_ERR_@endcode.
|
* @returns @code MSDF_SUCCESS@endcode on success, otherwise one of the constants prefixed with @code MSDF_ERR_@endcode.
|
||||||
*/
|
*/
|
||||||
MSDF_API int msdf_ft_font_load(msdf_ft_handle handle, const char* filename, msdf_ft_font_handle* font);
|
MSDF_API int msdf_ft_load_font(msdf_ft_handle handle, const char* filename, msdf_ft_font_handle* font);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads a TrueType font from the given buffer and populates
|
* Loads a TrueType font from the given buffer and populates
|
||||||
|
|
@ -57,7 +57,7 @@ MSDF_API int msdf_ft_font_load(msdf_ft_handle handle, const char* filename, msdf
|
||||||
* @param font A pointer to a font handle to be populated with the address of the newly loaded font.
|
* @param font A pointer to a font handle to be populated with the address of the newly loaded font.
|
||||||
* @returns @code MSDF_SUCCESS@endcode on success, otherwise one of the constants prefixed with @code MSDF_ERR_@endcode.
|
* @returns @code MSDF_SUCCESS@endcode on success, otherwise one of the constants prefixed with @code MSDF_ERR_@endcode.
|
||||||
*/
|
*/
|
||||||
MSDF_API int msdf_ft_font_load_data(msdf_ft_handle handle, const void* data, size_t size, msdf_ft_font_handle* font);
|
MSDF_API int msdf_ft_load_font_data(msdf_ft_handle handle, const void* data, size_t size, msdf_ft_font_handle* font);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads a single glyph from the given font and converts it into a vector shape
|
* Loads a single glyph from the given font and converts it into a vector shape
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue