PSP2SDK  dirty-f9e4f2d
The free SDK for PSP2
Data Structures | Typedefs | Enumerations | Functions
include/psp2/pgf.h File Reference

Header file which defines font (PGF) variables and functions. More...

#include <psp2/types.h>
#include <stdint.h>
Include dependency graph for pgf.h:

Go to the source code of this file.

Data Structures

struct  SceSceFontNewLibParams
struct  SceFontImageRect
struct  SceFontGlyphImage
struct  SceFontStyle
struct  SceFontCharInfo
struct  SceFontInfo

Typedefs

typedef SceUID SceFontLibHandle
typedef SceUID SceFontHandle
typedef struct
SceSceFontNewLibParams 
SceFontNewLibParams
typedef enum FontFamily FontFamily
typedef enum FontStyle FontStyle
typedef enum FontLanguage FontLanguage
typedef enum FontPixelFormat FontPixelFormat
typedef struct SceFontImageRect SceFontImageRect
typedef struct SceFontGlyphImage SceFontGlyphImage
typedef struct SceFontStyle SceFontStyle
typedef struct SceFontCharInfo SceFontCharInfo
typedef struct SceFontInfo SceFontInfo

Enumerations

enum  {
  SCE_FONT_ERROR_OUT_OF_MEMORY = 0x80460001, SCE_FONT_ERROR_INVALID_LIBID = 0x80460002, SCE_FONT_ERROR_INVALID_PARAMETER = 0x80460003, SCE_FONT_ERROR_HANDLER_OPEN_FAILED = 0x80460005,
  SCE_FONT_ERROR_TOO_MANY_OPEN_FONTS = 0x80460009, SCE_FONT_ERROR_INVALID_FONT_DATA = 0x8046000a
}
enum  FontFamily { FONT_FAMILY_SANS_SERIF = 1, FONT_FAMILY_SERIF = 2 }
enum  FontStyle {
  FONT_STYLE_REGULAR = 1, FONT_STYLE_ITALIC = 2, FONT_STYLE_BOLD = 5, FONT_STYLE_BOLD_ITALIC = 6,
  FONT_STYLE_DB = 103
}
enum  FontLanguage { FONT_LANGUAGE_JAPANESE = 1, FONT_LANGUAGE_LATIN = 2, FONT_LANGUAGE_KOREAN = 3, FONT_LANGUAGE_CHINESE = 4 }
enum  FontPixelFormat {
  FONT_PIXELFORMAT_4 = 0, FONT_PIXELFORMAT_4_REV = 1, FONT_PIXELFORMAT_8 = 2, FONT_PIXELFORMAT_24 = 3,
  FONT_PIXELFORMAT_32 = 4
}

Functions

SceFontLibHandle sceFontNewLib (SceFontNewLibParams *params, unsigned int *errorCode)
int sceFontDoneLib (SceFontLibHandle libHandle)
SceFontHandle sceFontOpen (SceFontLibHandle libHandle, int index, int mode, unsigned int *errorCode)
SceFontHandle sceFontOpenUserMemory (SceFontLibHandle libHandle, void *pMemoryFont, SceSize pMemoryFontSize, unsigned int *errorCode)
SceFontHandle sceFontOpenUserFile (SceFontLibHandle libHandle, char *file, int mode, unsigned int *errorCode)
int sceFontClose (SceFontHandle fontHandle)
int sceFontGetNumFontList (SceFontLibHandle libHandle, unsigned int *errorCode)
int sceFontFindOptimumFont (SceFontLibHandle libHandle, SceFontStyle *fontStyle, unsigned int *errorCode)
int sceFontFindFont (SceFontLibHandle libHandle, SceFontStyle *fontStyle, unsigned int *errorCode)
int sceFontGetFontInfo (SceFontHandle fontHandle, SceFontInfo *fontInfo)
int sceFontGetFontInfoByIndexNumber (SceFontLibHandle libHandle, SceFontStyle *fontStyle, int unknown, int fontIndex)
int sceFontSetResolution (SceFontLibHandle libHandle, float hRes, float vRes)
int sceFontGetFontList (SceFontLibHandle libHandle, SceFontStyle *fontStyle, int numFonts)
int sceFontGetCharInfo (SceFontHandle fontHandle, unsigned int charCode, SceFontCharInfo *charInfo)
int sceFontGetCharImageRect (SceFontHandle fontHandle, unsigned int charCode, SceFontImageRect *charRect)
int sceFontGetCharGlyphImage (SceFontHandle fontHandle, unsigned int charCode, SceFontGlyphImage *glyphImage)
int sceFontGetCharGlyphImage_Clip (SceFontHandle fontHandle, unsigned int charCode, SceFontGlyphImage *glyphImage, int clipXPos, int clipYPos, int clipWidth, int clipHeight)
float sceFontPixelToPointH (SceFontLibHandle libHandle, float fontPixelsH, unsigned int *errorCode)
float sceFontPixelToPointV (SceFontLibHandle libHandle, float fontPixelsV, unsigned int *errorCode)
float sceFontPointToPixelH (SceFontLibHandle libHandle, float fontPointsH, unsigned int *errorCode)
float sceFontPointToPixelV (SceFontLibHandle libHandle, float fontPointsV, unsigned int *errorCode)
int sceFontSetAltCharacterCode (SceFontLibHandle libHandle, unsigned int charCode)
int sceFontFlush (SceFontHandle fontHandle)

Detailed Description

Header file which defines font (PGF) variables and functions.

Copyright (C) 2015 PSP2SDK Project

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines