XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
ttf.h File Reference
#include <stdint.h>
#include <_xeneva.h>
#include "font.h"
#include "chitralekha.h"
Include dependency graph for ttf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _ttftable_
 
struct  _ttf_
 
struct  _off_sub_
 
struct  _table_dir_
 
struct  _head_tbl_
 
struct  _ttf_cmap_
 
struct  _ttf_cmap_sub_
 
struct  _cmap_format_
 
struct  _cmap_format12_
 
struct  _cmap_format12_grp_
 
struct  _cmap_format4_
 
struct  _maxp_
 
struct  _glyph_desc_
 

Macros

#define TTF_TABLE_CMAP   'cmap'
 
#define TTF_TABLE_GLYF   'glyf'
 
#define TTF_TABLE_HEAD   'head'
 
#define TTF_TABLE_HHEA   'hhea'
 
#define TTF_TABLE_HMTX   'hmtx'
 
#define TTF_TABLE_LOCA   'loca'
 
#define TTF_TABLE_MAXP   'maxp'
 
#define TTF_TABLE_NAME   'name'
 
#define TTF_TABLE_POST   'post'
 

Typedefs

typedef int16_t shortFrac
 
typedef int32_t Fixed
 
typedef int16_t FWord
 
typedef uint16_t uFWord
 
typedef int16_t F2Dot14
 
typedef uint64_t longDateTime
 
typedef struct _ttftable_ TTFTable
 
typedef struct _ttf_ TTFont
 
typedef struct _off_sub_ TTFOffsetSubtable
 
typedef struct _table_dir_ TTFTableDirectory
 
typedef struct _head_tbl_ TTFHead
 
typedef struct _ttf_cmap_ TTFCmap
 
typedef struct _ttf_cmap_sub_ TTFCmapSubtable
 
typedef struct _cmap_format_ TTFCmapFormat
 
typedef struct _cmap_format12_ TTFCmapFormat12
 
typedef struct _cmap_format12_grp_ TTFCmapFormat12Group
 
typedef struct _cmap_format4_ TTFCmapFormat4
 
typedef struct _maxp_ TTFMaxp
 
typedef struct _glyph_desc_ TTFGlyphDesc
 

Functions

TTFontTTFLoadFont (ChCanvas *canv, unsigned char *buffer)
 
void TTFSetFontSize (TTFont *font, float pointSz)
 

Macro Definition Documentation

◆ TTF_TABLE_CMAP

#define TTF_TABLE_CMAP   'cmap'

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.

◆ TTF_TABLE_GLYF

#define TTF_TABLE_GLYF   'glyf'

◆ TTF_TABLE_HEAD

#define TTF_TABLE_HEAD   'head'

◆ TTF_TABLE_HHEA

#define TTF_TABLE_HHEA   'hhea'

◆ TTF_TABLE_HMTX

#define TTF_TABLE_HMTX   'hmtx'

◆ TTF_TABLE_LOCA

#define TTF_TABLE_LOCA   'loca'

◆ TTF_TABLE_MAXP

#define TTF_TABLE_MAXP   'maxp'

◆ TTF_TABLE_NAME

#define TTF_TABLE_NAME   'name'

◆ TTF_TABLE_POST

#define TTF_TABLE_POST   'post'

Typedef Documentation

◆ F2Dot14

typedef int16_t F2Dot14

◆ Fixed

typedef int32_t Fixed

◆ FWord

typedef int16_t FWord

◆ longDateTime

◆ shortFrac

typedef int16_t shortFrac

◆ TTFCmap

typedef struct _ttf_cmap_ TTFCmap

◆ TTFCmapFormat

typedef struct _cmap_format_ TTFCmapFormat

◆ TTFCmapFormat12

◆ TTFCmapFormat12Group

◆ TTFCmapFormat4

◆ TTFCmapSubtable

◆ TTFGlyphDesc

typedef struct _glyph_desc_ TTFGlyphDesc

◆ TTFHead

typedef struct _head_tbl_ TTFHead

◆ TTFMaxp

typedef struct _maxp_ TTFMaxp

◆ TTFOffsetSubtable

typedef struct _off_sub_ TTFOffsetSubtable

◆ TTFont

typedef struct _ttf_ TTFont

◆ TTFTable

typedef struct _ttftable_ TTFTable

◆ TTFTableDirectory

◆ uFWord

typedef uint16_t uFWord

Function Documentation

◆ TTFLoadFont()

TTFont * TTFLoadFont ( ChCanvas canv,
unsigned char *  buffer 
)

◆ TTFSetFontSize()

void TTFSetFontSize ( TTFont font,
float  pointSz 
)