📄 ftdriver.h
字号:
/* */ /* <InOut> */ /* face :: A handle to the target face object. */ /* */ /* <Return> */ /* FreeType error code. 0 means success. */ /* */ typedef void (*FTDriver_doneFace)( FT_Face face ); /*************************************************************************/ /* */ /* <FuncType> */ /* FTDriver_getKerning */ /* */ /* <Description> */ /* A driver method used to return the kerning vector between two */ /* glyphs of the same face. */ /* */ /* <Input> */ /* face :: A handle to the source face object. */ /* left_glyph :: The index of the left glyph in the kern pair. */ /* right_glyph :: The index of the right glyph in the kern pair. */ /* */ /* <Output> */ /* kerning :: A pointer to the kerning vector. This is in font */ /* units for scalable formats, and in pixels for */ /* fixed-sizes formats. */ /* */ /* <Return> */ /* FreeType error code. 0 means success. */ /* */ /* <Note> */ /* Only horizontal layouts (left-to-right & right-to-left) are */ /* supported by this method. Other layouts, or more sophisticated */ /* kernings are out of the scope of this method (the basic driver */ /* interface is meant to be simple). */ /* */ /* They can be implemented by format-specific interfaces. */ /* */ typedef FT_Error (*FTDriver_getKerning)( FT_Face face, FT_UInt left_glyph, FT_UInt right_glyph, FT_Vector* kerning ); /*************************************************************************/ /*************************************************************************/ /*************************************************************************/ /**** ****/ /**** ****/ /**** S I Z E S ****/ /**** ****/ /**** ****/ /*************************************************************************/ /*************************************************************************/ /*************************************************************************/ /*************************************************************************/ /* */ /* <FuncType> */ /* FTDriver_initSize */ /* */ /* <Description> */ /* A driver method used to initialize a new size object. The object */ /* must be created by the caller. */ /* */ /* <InOut> */ /* size :: A handle to the new size object. */ /* */ /* <Return> */ /* FreeType error code. 0 means success. */ /* */ /* <Note> */ /* This function should return an error if the face's format isn't */ /* scalable. */ /* */ typedef FT_Error (*FTDriver_initSize)( FT_Size size ); /*************************************************************************/ /* */ /* <FuncType> */ /* FTDriver_setCharSizes */ /* */ /* <Description> */ /* A driver method used to reset a size's character sizes (horizontal */ /* and vertical) expressed in fractional points. */ /* */ /* <InOut> */ /* size :: A handle to the target size object. */ /* */ /* <Input> */ /* char_width :: The character width expressed in 26.6 */ /* fractional points. */ /* char_height :: The character height expressed in 26.6 */ /* fractional points. */ /* horz_resolution :: The horizontal resolution. */ /* vert_resolution :: The vertical resolution. */ /* */ /* <Return> */ /* FreeType error code. 0 means success. */ /* */ /* <Note> */ /* This function should always FAIL if the face format isn't */ /* scalable! */ /* */ typedef FT_Error (*FTDriver_setCharSizes)( FT_Size size, FT_F26Dot6 char_width, FT_F26Dot6 char_height, FT_UInt horz_resolution, FT_UInt vert_resolution ); /*************************************************************************/ /* */ /* <FuncType> */ /* FTDriver_setPixelSizes */ /* */ /* <Description> */ /* A driver method used to reset a size's character sizes (horizontal */ /* and vertical) expressed in integer pixels. */ /* */ /* <InOut> */ /* size :: A handle to the target size object. */ /* */ /* <Input> */ /* pixel_width :: The character width expressed in 26.6 fractional */ /* pixels. */ /* pixel_height :: The character height expressed in 26.6 fractional */ /* pixels. */ /* */ /* <Return> */ /* FreeType error code. 0 means success. */ /* */ /* <Note> */ /* This function should work with all kinds of `size' objects, either */ /* fixed or scalable ones. */ /* */ typedef FT_Error (*FTDriver_setPixelSizes)( FT_Size size, FT_UInt pixel_width, FT_UInt pixel_height ); /*************************************************************************/ /* */ /* <FuncType> */ /* FTDriver_doneSize */ /* */ /* <Description> */ /* A driver method used to finalize a given size object. This method */ /* does NOT destroy the object; this is the responsibility of the */ /* caller. */ /* */ /* <InOut> */ /* size :: A handle to the target size object. */ /* */ typedef void (*FTDriver_doneSize)( FT_Size size ); /*************************************************************************/ /*************************************************************************/ /*************************************************************************/ /**** ****/ /**** ****/ /**** G L Y P H S L O T S ****/ /**** ****/ /**** ****/ /*************************************************************************/ /*************************************************************************/ /*************************************************************************/ /*************************************************************************/ /* */ /* <FuncType> */ /* FTDriver_initGlyphSlot */ /* */ /* <Description> */ /* A driver method used to initialize a new glyph slot object. The */ /* object must be created by the caller. The glyph slot is a */ /* container where a single glyph can be loaded, either in outline or */ /* bitmap format. */ /* */ /* <InOut> */ /* slot :: A handle to the new glyph slot object. */ /* */ /* <Return> */ /* FreeType error code. 0 means success. */ /* */ typedef FT_Error (*FTDriver_initGlyphSlot)( FT_GlyphSlot slot ); /*************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -