PSPSDK 2026-09-28
Loading...
Searching...
No Matches
pspfont.h File Reference
#include <malloc.h>
Include dependency graph for pspfont.h:

Go to the source code of this file.

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.
 

Enumerations

enum  SceFontFamily { SCE_FONT_FAMILY_DEFAULT = 0x0 , SCE_FONT_FAMILY_SANS_SERIF = 0x1 , SCE_FONT_FAMILY_SERIF = 0x2 , SCE_FONT_FAMILY_ROUNDED = 0x3 }
 
enum  SceFontStyles {
  SCE_FONT_STYLE_DEFAULT = 0x0 , SCE_FONT_STYLE_REGULAR = 0x1 , SCE_FONT_STYLE_ITALIC = 0x2 , SCE_FONT_STYLE_THIN = 0x3 ,
  SCE_FONT_STYLE_ITALIC_THIN = 0x4 , SCE_FONT_STYLE_BOLD = 0x5 , SCE_FONT_STYLE_ITALIC_BOLD = 0x6 , SCE_FONT_STYLE_THICK = 0x7 ,
  SCE_FONT_STYLE_ITALIC_THICK = 0x8
}
 
enum  SceFontPixelFormat {
  SCE_FONT_PIXEL_FORMAT_L4 = 0x0 , SCE_FONT_PIXEL_FORMAT_R4 = 0x1 , SCE_FONT_PIXEL_FORMAT_8 = 0x2 , SCE_FONT_PIXEL_FORMAT_24 = 0x3 ,
  SCE_FONT_PIXEL_FORMAT_32 = 0x4
}
 
enum  SceFontLanguage {
  SCE_FONT_LANGUAGE_DEFAULT = 0x0 , SCE_FONT_LANGUAGE_JAPANESE = 0x1 , SCE_FONT_LANGUAGE_ENGLISH = 0x2 , SCE_FONT_LANGUAGE_KOREAN = 0x3 ,
  SCE_FONT_LANGUAGE_CHINESE = 0x4 , SCE_FONT_LANGUAGE_JKC = 0x5
}
 
enum  SceFontVendorCountry { SCE_FONT_VENDOR_COUNTRY_DEFAULT = 0x0 , SCE_FONT_VENDOR_COUNTRY_JAPAN = 0x1 , SCE_FONT_VENDOR_COUNTRY_USA = 0x2 , SCE_FONT_VENDOR_COUNTRY_KOREA = 0x3 }
 

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.