freetype: expose sfnt name functions

This commit is contained in:
Wez Furlong committed 2021-10-10 10:14:41 -07:00
1 parent bb2c534a56
commit 2a4cbf0d59
2 files changed
+32

No files matched your search

+1
View File
@@ -7,3 +7,4 @@
#include <freetype/ftmm.h>
#include <freetype/ftsynth.h>
#include <freetype/ftglyph.h>
#include <freetype/ftsnames.h>
+31
View File
@@ -1875,3 +1875,34 @@ extern "C" {
extern "C" {
pub fn FT_Matrix_Invert(matrix: *mut FT_Matrix) -> FT_Error;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FT_SfntName_ {
pub platform_id: FT_UShort,
pub encoding_id: FT_UShort,
pub language_id: FT_UShort,
pub name_id: FT_UShort,
pub string: *mut FT_Byte,
pub string_len: FT_UInt,
}
pub type FT_SfntName = FT_SfntName_;
extern "C" {
pub fn FT_Get_Sfnt_Name_Count(face: FT_Face) -> FT_UInt;
}
extern "C" {
pub fn FT_Get_Sfnt_Name(face: FT_Face, idx: FT_UInt, aname: *mut FT_SfntName) -> FT_Error;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FT_SfntLangTag_ {
pub string: *mut FT_Byte,
pub string_len: FT_UInt,
}
pub type FT_SfntLangTag = FT_SfntLangTag_;
extern "C" {
pub fn FT_Get_Sfnt_LangTag(
face: FT_Face,
langID: FT_UInt,
alangTag: *mut FT_SfntLangTag,
) -> FT_Error;
}