|
XenevaOS
|
#include <ftmngr.h>#include <_null.h>#include <Fs\vfs.h>#include <Mm\vmmngr.h>#include <Mm\pmmngr.h>#include <Drivers/uart.h>#include <aucon.h>#include <Mm\kmalloc.h>#include <Mm\shm.h>#include <stdio.h>#include <Hal/AA64/aa64lowlevel.h>
Macros | |
| #define | FONTMGR_KEY 0x1234 |
Functions | |
| void | FontManagerAddSegment (FontSeg *seg) |
| FontManagerAddSegment – add a font segment. | |
| void | FontManagerRemoveSegment (FontSeg *seg) |
| FontManagerRemoveSegment – remove a font segment. | |
| uint16_t | FontManagerGetKey () |
| FontManagerGetKey – obtain a key. | |
| FontSeg * | FontManagerAllocateSegment (AuVFSNode *fontfile, char *fontname) |
| FontManagerAllocateSegment – allocate a font segment. | |
| AuVFSNode * | FontManagerOpenFontFile (char *filename) |
| FontManagerOpenFontFile– opens a font file from disk. | |
| void | FontManagerIterateFontList (uint8_t *fontlst) |
| FontManagerIterateFontList– iterates all fonts from the font config file. | |
| int | FontManagerGetFontCount (uint8_t *fontlst) |
| FontManagerGetFontCount – returns number of font counts. | |
| void | FontManagerInitialise () |
| FontManagerInitialise – initialise font manager. | |
| int | AuFTMngrGetFontID (char *fontname) |
| AuFTMngrGetFontID – returns the font id of given font name. | |
| int | AuFTMngrGetFontSize (char *fontname) |
| AuFTMngrGetFontSize – returns font size. | |
| int | AuFTMngrGetNumFonts () |
| AuFTMngrGetNumFonts – return number system fonts installed. | |
Variables | |
| uint8_t * | font_conf_data |
| uint16_t | fontKey |
| int | totalSysFonts |
BSD 2-Clause License
Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| #define FONTMGR_KEY 0x1234 |
| int AuFTMngrGetFontID | ( | char * | fontname | ) |
AuFTMngrGetFontID – returns the font id of given font name.
| fontname | – name of the desired font |
| int AuFTMngrGetFontSize | ( | char * | fontname | ) |
AuFTMngrGetFontSize – returns font size.
| fontname | – name of the font |
| int AuFTMngrGetNumFonts | ( | ) |
AuFTMngrGetNumFonts – return number system fonts installed.
| void FontManagerAddSegment | ( | FontSeg * | seg | ) |
FontManagerAddSegment – add a font segment.
| seg | – font segment |
FontManagerAllocateSegment – allocate a font segment.
| fontfile | – Pointer to fontfile |
| fontname | – name of the font |
| int FontManagerGetFontCount | ( | uint8_t * | fontlst | ) |
FontManagerGetFontCount – returns number of font counts.
| fontlst | – font list buffer |
| uint16_t FontManagerGetKey | ( | ) |
FontManagerGetKey – obtain a key.
| void FontManagerInitialise | ( | ) |
FontManagerInitialise – initialise font manager.
| void FontManagerIterateFontList | ( | uint8_t * | fontlst | ) |
FontManagerIterateFontList– iterates all fonts from the font config file.
| fontlst | – pointer to font list buffer |
| AuVFSNode * FontManagerOpenFontFile | ( | char * | filename | ) |
FontManagerOpenFontFile– opens a font file from disk.
| void FontManagerRemoveSegment | ( | FontSeg * | seg | ) |
FontManagerRemoveSegment – remove a font segment.
| seg | – Pointer to font segment |
| uint8_t* font_conf_data |
| uint16_t fontKey |
| int totalSysFonts |