00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef GNASH_FONTLIB_H
00010 #define GNASH_FONTLIB_H
00011
00012
00013 #include "container.h"
00014 #include "types.h"
00015 class tu_file;
00016
00017 namespace gnash {
00018
00019 class movie_def_impl;
00020 class texture_glyph;
00021
00022 namespace fontlib
00023 {
00024
00025 void add_font(font* f);
00026
00027
00028 void draw_glyph(const matrix& m, const texture_glyph& g, rgba color, int nominal_glyph_height);
00029
00030
00031
00032
00033 float get_texture_glyph_max_height(const font* f);
00034
00035
00036 void generate_font_bitmaps(const std::vector<font*>& fonts, movie_definition* owner);
00037
00038
00039
00040 void output_cached_data(
00041 tu_file* out,
00042 const std::vector<font*>& fonts,
00043 movie_definition* owner,
00044 const cache_options& options);
00045
00046
00047
00048 void input_cached_data(tu_file* in, const std::vector<font*>& fonts, movie_definition* owner);
00049
00050 }
00051 }
00052
00053
00054
00055 #endif // GNASH_FONTLIB_H
00056
00057
00058
00059
00060
00061
00062