XenevaOS
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
ftmngr.h File Reference
#include <stdint.h>
#include <string.h>
#include <Mm\shm.h>
Include dependency graph for ftmngr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _font_seg_
 

Typedefs

typedef struct _font_seg_ FontSeg
 

Functions

void FontManagerInitialise ()
 FontManagerInitialise – initialise font manager.
 
int AuFTMngrGetFontID (char *fontname)
 AuFTMngrGetFontID – returns the font id of given font name.
 
int AuFTMngrGetNumFonts ()
 AuFTMngrGetNumFonts – return number system fonts installed.
 
int AuFTMngrGetFontSize (char *fontname)
 AuFTMngrGetFontSize – returns font size.
 

Typedef Documentation

◆ FontSeg

typedef struct _font_seg_ FontSeg

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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

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.

Function Documentation

◆ AuFTMngrGetFontID()

int AuFTMngrGetFontID ( char *  fontname)
extern

AuFTMngrGetFontID – returns the font id of given font name.

Parameters
fontname– name of the desired font
Returns
id of the desired font

◆ AuFTMngrGetFontSize()

int AuFTMngrGetFontSize ( char *  fontname)
extern

AuFTMngrGetFontSize – returns font size.

Parameters
fontname– name of the font
Returns
the size of the font in bytes

◆ AuFTMngrGetNumFonts()

int AuFTMngrGetNumFonts ( )
extern

AuFTMngrGetNumFonts – return number system fonts installed.

Returns
total count of system font FontManagerGetFontCount does the same thing except it uses the font config file to get the number of total font count

◆ FontManagerInitialise()

void FontManagerInitialise ( )
extern

FontManagerInitialise – initialise font manager.