Use One-Time Initialization for glyph run caching to avoid duplicate glyph run genera...
[gdipp.git] / gdipp_server / freetype.h
blobe8bd51fb41ffc86f7cc65e341952ee3b7d62fc21
1 #pragma once
3 namespace gdipp
6 extern FT_Library ft_lib;
7 extern FTC_Manager ft_cache_man;
8 extern FTC_ImageCache ft_glyph_cache;
9 extern FT_Glyph empty_outline_glyph;
11 void initialize_freetype();
12 void destroy_freetype();
13 FT_Error face_requester(FTC_FaceID face_id, FT_Library library, FT_Pointer request_data, FT_Face *aface);
14 int freetype_get_kern(const FTC_Scaler scaler, WORD left_glyph, WORD right_glyph);
15 FT_Glyph make_empty_outline_glyph();