update
This commit is contained in:
commit
bbb97be6c4
71 files changed
+1738
No files matched your search
@@ -0,0 +1,54 @@
|
||||
#ifndef __AMSFONTCONVERTER4_HPP__
|
||||
#define __AMSFONTCONVERTER4_HPP__
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
||||
#include <amsmathutil25/amsmathutil25.hpp>
|
||||
#include <amsstring4/amsstring4.hpp>
|
||||
#include <amscppimglib4/amscppimglib4.hpp>
|
||||
|
||||
#include <amscppfont4/amscppfont4.hpp>
|
||||
|
||||
//Freetype libraries
|
||||
#include <ft2build.h>
|
||||
#include FT_FREETYPE_H
|
||||
|
||||
namespace ams
|
||||
{
|
||||
namespace font4
|
||||
{
|
||||
|
||||
|
||||
//Class intended to open and load a single freetype font-face (single file)
|
||||
//Loads glyphs and glyph metrics from .ttf and .otf files using the Freetype library.
|
||||
class freetype_fontfaceloader
|
||||
{
|
||||
public:
|
||||
freetype_fontfaceloader();
|
||||
~freetype_fontfaceloader();
|
||||
|
||||
bool bopen; //is fontface file open?
|
||||
bool blibinit; //is the freetype library initialized?
|
||||
|
||||
FT_Library library;
|
||||
FT_Face face;
|
||||
|
||||
//
|
||||
int open(const char *fontfilename);
|
||||
void close();
|
||||
|
||||
bool hasglyph(uint32_t charind);
|
||||
int getglyph(uint32_t charind, int charheight, amsbitplane *glyph, amsglyphmetrics *glyphmetrics);
|
||||
|
||||
|
||||
//loads the set of glyphs into memory for the font-face
|
||||
//performs no other calculations
|
||||
//void load_amsface(uint32_t charindmin, uint32_t charindmax, int targetcharheight, amsfontface *fface);
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user