|
XenevaOS
|
#include <stdint.h>#include <sys\_keftmngr.h>#include <freetype\ftglyph.h>#include <_xeneva.h>#include "chitralekha.h"#include "draw.h"#include <ft2build.h>

Go to the source code of this file.
Classes | |
| struct | _ch_font_ |
Macros | |
| #define | ROBOTO_LIGHT "Roboto-Light" |
| #define | ROBOTO_LIGHT_ITALIC "Roboto-Light-Italic" |
| #define | ROBOTO_THIN "Roboto-Thin" |
| #define | CORBEL "Corbel" |
| #define | CALIBRI "Calibri" |
| #define | FORTE "Forte" |
| #define | CONSOLAS "Consolas" |
| #define | XENEVA_DEFAULT_FONT CALIBRI |
Typedefs | |
| typedef struct _ch_font_ | ChFont |
Functions | |
| XE_LIB ChFont * | ChInitialiseFont (char *fontname) |
| XE_LIB void | ChFontSetSize (ChFont *font, int size) |
| XE_LIB void | ChFontDrawText (ChCanvas *canv, ChFont *font, char *string, int penx, int peny, uint32_t sz, uint32_t color) |
| void | ChFontDrawCharClipped (ChCanvas *canv, ChFont *font, char c, int penx, int peny, uint32_t color, ChRect *limit) |
| XE_LIB void | ChFontDrawChar (ChCanvas *canv, ChFont *font, char c, int penx, int peny, uint32_t sz, uint32_t color) |
| XE_LIB int | ChFontDrawTextClipped (ChCanvas *canv, ChFont *font, char *string, int penx, int peny, uint32_t color, ChRect *limit) |
| XE_LIB int64_t | ChFontGetWidth (ChFont *font, char *string) |
| XE_LIB int64_t | ChFontGetWidthChar (ChFont *font, char c) |
| XE_LIB int64_t | ChFontGetHeight (ChFont *font, char *string) |
| XE_LIB int64_t | ChFontGetHeightChar (ChFont *font, char c) |
| XE_LIB int | ChFontClose (ChFont *font) |
| #define CALIBRI "Calibri" |
| #define CONSOLAS "Consolas" |
| #define CORBEL "Corbel" |
| #define FORTE "Forte" |
| #define ROBOTO_LIGHT "Roboto-Light" |
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 ROBOTO_LIGHT_ITALIC "Roboto-Light-Italic" |
| #define ROBOTO_THIN "Roboto-Thin" |
| #define XENEVA_DEFAULT_FONT CALIBRI |
| XE_LIB void ChFontDrawChar | ( | ChCanvas * | canv, |
| ChFont * | font, | ||
| char | c, | ||
| int | penx, | ||
| int | peny, | ||
| uint32_t | sz, | ||
| uint32_t | color | ||
| ) |
| void ChFontDrawCharClipped | ( | ChCanvas * | canv, |
| ChFont * | font, | ||
| char | c, | ||
| int | penx, | ||
| int | peny, | ||
| uint32_t | color, | ||
| ChRect * | limit | ||
| ) |
| XE_LIB void ChFontDrawText | ( | ChCanvas * | canv, |
| ChFont * | font, | ||
| char * | string, | ||
| int | penx, | ||
| int | peny, | ||
| uint32_t | sz, | ||
| uint32_t | color | ||
| ) |
| XE_LIB int ChFontDrawTextClipped | ( | ChCanvas * | canv, |
| ChFont * | font, | ||
| char * | string, | ||
| int | penx, | ||
| int | peny, | ||
| uint32_t | color, | ||
| ChRect * | limit | ||
| ) |
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.