|
PSPSDK 2026-09-28
|
This module contains the imports for fonts. More...
Data Structures | |
| struct | SceFontStyle |
| Font style info. More... | |
| struct | SceFontCharacterData |
| Fixed-point info about singular characters. More... | |
| struct | SceFontCharacterDataFloat |
| Floating-point info about singular characters. More... | |
| struct | SceFontInfo |
| General font info. More... | |
| struct | SceFontRect |
| Rectangular size of the font images. More... | |
| struct | SceFontCache |
| Font cache data. More... | |
| struct | SceFontLibData |
| Info about a specific font. More... | |
| struct | SceFontImageBuffer |
| Buffer of the image containing a font. More... | |
| struct | SceFontCharacterInfo |
| All the information regarding a single character. More... | |
Typedefs | |
| typedef struct SceFontStyle | SceFontStyle |
| Font style info. | |
| typedef struct SceFontCharacterData | SceFontCharacterData |
| Fixed-point info about singular characters. | |
| typedef struct SceFontCharacterDataFloat | SceFontCharacterDataFloat |
| Floating-point info about singular characters. | |
| typedef struct SceFontInfo | SceFontInfo |
| General font info. | |
| typedef struct SceFontRect | SceFontRect |
| Rectangular size of the font images. | |
| typedef struct SceFontCache | SceFontCache |
| Font cache data. | |
| typedef struct SceFontLibData | SceFontLibData |
| Info about a specific font. | |
| typedef struct SceFontImageBuffer | SceFontImageBuffer |
| Buffer of the image containing a font. | |
| typedef struct SceFontCharacterInfo | SceFontCharacterInfo |
| All the information regarding a single character. | |
Functions | |
| int | sceFontFlush (void *libraryId) |
| Flush local font cache. | |
| int | sceFontFindOptimumFont (void *libraryId, SceFontStyle *fontStyle, int *error) |
| Find an optimum font. | |
| int | sceFontGetFontInfo (void *fontHandle, SceFontInfo *fontInfo) |
| Get font info. | |
| int | sceFontGetNumFontList (void *libraryHandle, int *error) |
| Get number of all available font lists. | |
| int | sceFontCalcMemorySize (void *libraryHandle, SceFontStyle *fontStyle, int *error) |
| Calculate required memory size for a font. | |
| int | sceFontIsElement () |
| int | sceFontClose (void *fontHandle) |
| Close the font handle. | |
| float | sceFontPointToPixelV (void *libraryHandle, float points, int *error) |
| Convert units from points to pixels in the vertical direction. | |
| float | sceFontPointToPixelH (void *libraryHandle, float points, int *error) |
| Convert units from points to pixels in the horizontal direction. | |
| int | sceFontSetResolution (void *libraryHandle, float hres, float vres) |
| Set font resolution. | |
| int | sceFontGetShadowImageRect (void *fontHandle, unsigned short code, SceFontRect *output) |
| int | sceFontGetFontInfoByIndexNumber (void *libraryHandle, SceFontStyle *fontStyle, int index) |
| Get font style info by index number. | |
| int | sceFontGetShadowGlyphImage (void *fontHandle, unsigned short code, SceFontImageBuffer *output) |
| int | sceFontDoneLib (void *libraryHandle) |
| Terminate a font handle. | |
| void * | sceFontOpenUserFile (void *libraryHandle, char *path, unsigned int mode, int *error) |
| Open local font file. | |
| int | sceFontGetCharImageRect (void *fontHandle, unsigned short code, SceFontRect *output) |
| Get size of the image of the character. | |
| int | sceFontGetShadowGlyphImage_Clip (void *fontHandle, unsigned short code, SceFontImageBuffer *output, int x, int y, unsigned int width, unsigned int height) |
| void * | sceFontNewLib (SceFontLibData *data, int *error) |
| Initialize a font library. | |
| int | sceFontFindFont (void *libraryHandle, SceFontStyle *fontStyle, int *error) |
| Find the font that exactly matches the style. | |
| float | sceFontPixelToPointH (void *libraryHandle, float pixels, int *error) |
| Convert units from pixels to points in the horizontal direction. | |
| int | sceFontGetCharGlyphImage (void *fontHandle, unsigned short code, SceFontImageBuffer *output) |
| Get image of a character. | |
| void * | sceFontOpen (void *libraryHandle, int index, unsigned int mode, int *error) |
| Open a new font. | |
| int | sceFontGetShadowInfo (void *fontHandle, unsigned short code, SceFontCharacterInfo *output) |
| void * | sceFontOpenUserMemory (void *libraryHandle, char *font, unsigned int size, int *error) |
| Open font from memory. | |
| int | sceFontGetFontList (void *libraryHandle, SceFontStyle *output, int size) |
| Get available fonts. | |
| int | sceFontGetCharGlyphImage_Clip (void *fontHandle, unsigned short code, SceFontImageBuffer *output, int x, int y, unsigned int width, unsigned int height) |
| Get clipped image of the character. | |
| int | sceFontGetCharInfo (void *fontHandle, unsigned short code, SceFontCharacterInfo *output) |
| Get info about character. | |
| int | sceFontSetAltCharacterCode (void *libraryHandle, unsigned short code) |
| Set a fallback character. | |
| float | sceFontPixelToPointV (void *libraryHandle, float pixels, int *error) |
| Convert units from pixels to points in the vertical direction. | |
This module contains the imports for fonts.
| typedef struct SceFontCache SceFontCache |
Font cache data.
| typedef struct SceFontCharacterData SceFontCharacterData |
Fixed-point info about singular characters.
| typedef struct SceFontCharacterDataFloat SceFontCharacterDataFloat |
Floating-point info about singular characters.
| typedef struct SceFontCharacterInfo SceFontCharacterInfo |
All the information regarding a single character.
| typedef struct SceFontImageBuffer SceFontImageBuffer |
Buffer of the image containing a font.
| typedef struct SceFontInfo SceFontInfo |
General font info.
| typedef struct SceFontLibData SceFontLibData |
Info about a specific font.
| typedef struct SceFontRect SceFontRect |
Rectangular size of the font images.
| typedef struct SceFontStyle SceFontStyle |
| enum SceFontFamily |
| enum SceFontLanguage |
| enum SceFontPixelFormat |
| enum SceFontStyles |
| enum SceFontVendorCountry |
| int sceFontCalcMemorySize | ( | void * | libraryHandle, |
| SceFontStyle * | fontStyle, | ||
| int * | error ) |
Calculate required memory size for a font.
| libraryHandle | - Font library handle. |
| fontStyle | - Style for the requested font. |
| error | - Address for an error code. |
| int sceFontClose | ( | void * | fontHandle | ) |
Close the font handle.
| fontHandle | - Font handle. |
| int sceFontDoneLib | ( | void * | libraryHandle | ) |
Terminate a font handle.
| libraryHandle | - Font library handle. |
| int sceFontFindFont | ( | void * | libraryHandle, |
| SceFontStyle * | fontStyle, | ||
| int * | error ) |
Find the font that exactly matches the style.
| libraryHandle | - Font library handle. |
| fontStyle | - Style for the font to find. |
| error | - Address for an error code. |
| int sceFontFindOptimumFont | ( | void * | libraryId, |
| SceFontStyle * | fontStyle, | ||
| int * | error ) |
Find an optimum font.
| libraryId | - Font handle. |
| fontStyle | - Style data of a wanted font. |
| error | - Address for an error code. |
| int sceFontFlush | ( | void * | libraryId | ) |
Flush local font cache.
| libraryId | - Font handle. |
| int sceFontGetCharGlyphImage | ( | void * | fontHandle, |
| unsigned short | code, | ||
| SceFontImageBuffer * | output ) |
Get image of a character.
| fontHandle | - Font handle. |
| code | - Character code. |
| output | - Output data. |
| int sceFontGetCharGlyphImage_Clip | ( | void * | fontHandle, |
| unsigned short | code, | ||
| SceFontImageBuffer * | output, | ||
| int | x, | ||
| int | y, | ||
| unsigned int | width, | ||
| unsigned int | height ) |
Get clipped image of the character.
| fontHandle | - Font handle. |
| code | - Character code. |
| output | - Output data. |
| x | - X position of clipping. |
| y | - Y position of clipping. |
| width | - Clipping width. |
| height | - Clipping height. |
| int sceFontGetCharImageRect | ( | void * | fontHandle, |
| unsigned short | code, | ||
| SceFontRect * | output ) |
Get size of the image of the character.
| fontHandle | - Font handle. |
| code | - Character code. |
| output | - Pointer to output with width and size of the image. |
| int sceFontGetCharInfo | ( | void * | fontHandle, |
| unsigned short | code, | ||
| SceFontCharacterInfo * | output ) |
Get info about character.
| fontHandle | - Font handle. |
| code | - Character code. |
| output | - Output of character information. |
| int sceFontGetFontInfo | ( | void * | fontHandle, |
| SceFontInfo * | fontInfo ) |
Get font info.
| fontHandle | - Font library handle. |
| fontInfo | - Font information output. |
| int sceFontGetFontInfoByIndexNumber | ( | void * | libraryHandle, |
| SceFontStyle * | fontStyle, | ||
| int | index ) |
Get font style info by index number.
| libraryHandle | - Font library handle. |
| fontStyle | - Style output. |
| index | - Font index. |
| int sceFontGetFontList | ( | void * | libraryHandle, |
| SceFontStyle * | output, | ||
| int | size ) |
Get available fonts.
| libraryHandle | - Font library handle. |
| output | - Array of SceFontStyle. |
| size | - Size of the output array. |
| int sceFontGetNumFontList | ( | void * | libraryHandle, |
| int * | error ) |
Get number of all available font lists.
| libraryHandle | - Font library handle. |
| error | - Address for an error code. |
| int sceFontGetShadowGlyphImage | ( | void * | fontHandle, |
| unsigned short | code, | ||
| SceFontImageBuffer * | output ) |
| int sceFontGetShadowGlyphImage_Clip | ( | void * | fontHandle, |
| unsigned short | code, | ||
| SceFontImageBuffer * | output, | ||
| int | x, | ||
| int | y, | ||
| unsigned int | width, | ||
| unsigned int | height ) |
| int sceFontGetShadowImageRect | ( | void * | fontHandle, |
| unsigned short | code, | ||
| SceFontRect * | output ) |
| int sceFontGetShadowInfo | ( | void * | fontHandle, |
| unsigned short | code, | ||
| SceFontCharacterInfo * | output ) |
| int sceFontIsElement | ( | ) |
| void * sceFontNewLib | ( | SceFontLibData * | data, |
| int * | error ) |
Initialize a font library.
| data | - Setup for a font library. |
| error | - Address for an error code. |
| void * sceFontOpen | ( | void * | libraryHandle, |
| int | index, | ||
| unsigned int | mode, | ||
| int * | error ) |
Open a new font.
| libraryHandle | - Font library handle. |
| index | - Font index (0 for default). |
| mode | - 0 for file based stream, 1 for memory based stream. |
| error | - Address for an error code. |
| void * sceFontOpenUserFile | ( | void * | libraryHandle, |
| char * | path, | ||
| unsigned int | mode, | ||
| int * | error ) |
Open local font file.
| libraryHandle | - Font library handle. |
| path | - Full path to the font. |
| mode | - 0 for file based stream, 1 for memory based stream. |
| error | - Address for an error code. |
| void * sceFontOpenUserMemory | ( | void * | libraryHandle, |
| char * | font, | ||
| unsigned int | size, | ||
| int * | error ) |
Open font from memory.
| libraryHandle | - Font library handle. |
| font | - Pointer to font in memory. |
| size | - Size of the font data. |
| error | - Address for an error code. |
| float sceFontPixelToPointH | ( | void * | libraryHandle, |
| float | pixels, | ||
| int * | error ) |
Convert units from pixels to points in the horizontal direction.
| libraryHandle | - Font library handle. |
| pixels | - Pixels value to convert. |
| error | - Address for an error code. |
| float sceFontPixelToPointV | ( | void * | libraryHandle, |
| float | pixels, | ||
| int * | error ) |
Convert units from pixels to points in the vertical direction.
| libraryHandle | - Font library handle. |
| pixels | - Pixels value to convert. |
| error | - Address for an error code. |
| float sceFontPointToPixelH | ( | void * | libraryHandle, |
| float | points, | ||
| int * | error ) |
Convert units from points to pixels in the horizontal direction.
| libraryHandle | - Font library handle. |
| points | - Points value to convert. |
| error | - Address for an error code. |
| float sceFontPointToPixelV | ( | void * | libraryHandle, |
| float | points, | ||
| int * | error ) |
Convert units from points to pixels in the vertical direction.
| libraryHandle | - Font library handle. |
| points | - Points value to convert. |
| error | - Address for an error code. |
| int sceFontSetAltCharacterCode | ( | void * | libraryHandle, |
| unsigned short | code ) |
Set a fallback character.
| libraryHandle | - Font library handle. |
| code | - Character code. |
| int sceFontSetResolution | ( | void * | libraryHandle, |
| float | hres, | ||
| float | vres ) |
Set font resolution.
| libraryHandle | - Font library handle. |
| hres | - Horizontal resolution. |
| vres | - Vertical resolution. |