summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/rendfont.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/rendfont.h')
-rw-r--r--src/emu/rendfont.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/emu/rendfont.h b/src/emu/rendfont.h
index fc0c4853733..9ada358ed5d 100644
--- a/src/emu/rendfont.h
+++ b/src/emu/rendfont.h
@@ -11,8 +11,6 @@
#ifndef MAME_EMU_RENDFONT_H
#define MAME_EMU_RENDFONT_H
-#include "render.h"
-
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
@@ -37,8 +35,8 @@ public:
// size queries
s32 pixel_height() const { return m_height; }
float char_width(float height, float aspect, char32_t ch);
- float string_width(float height, float aspect, const char *string);
- float utf8string_width(float height, float aspect, const char *utf8string);
+ float string_width(float height, float aspect, std::string_view string);
+ float utf8string_width(float height, float aspect, std::string_view utf8string);
// texture/bitmap queries
render_texture *get_char_texture_and_bounds(float height, float aspect, char32_t ch, render_bounds &bounds);
@@ -82,10 +80,10 @@ private:
// helpers
glyph &get_char(char32_t chnum);
void char_expand(char32_t chnum, glyph &ch);
- bool load_cached_bdf(const char *filename);
+ bool load_cached_bdf(std::string_view filename);
bool load_bdf();
- bool load_cached(emu_file &file, u64 length, u32 hash);
- bool save_cached(const char *filename, u64 length, u32 hash);
+ bool load_cached(util::random_read &file, u64 length, u32 hash);
+ bool save_cached(util::random_write &file, u64 length, u32 hash);
void render_font_command_glyph();
@@ -110,6 +108,6 @@ private:
static const u64 CACHED_BDF_HASH_SIZE = 1024;
};
-void convert_command_glyph(std::string &s);
+std::string convert_command_glyph(std::string_view str);
#endif /* MAME_EMU_RENDFONT_H */