2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-15 22:57:02 +00:00

Better tooltip rendering; floating-point pixel factor

This commit is contained in:
Jack Andersen
2015-12-07 15:44:46 -10:00
parent 6f9abde372
commit d923e9eedd
7 changed files with 62 additions and 41 deletions

View File

@@ -74,8 +74,11 @@ public:
int nominalWidth() const {return m_width;}
int nominalHeight() const {return m_fontAtlas.FT_LineHeight() >> 6;}
std::pair<int,int> queryGlyphDimensions(size_t pos) const;
private:
std::vector<RenderGlyph> m_glyphs;
std::vector<std::pair<int,int>> m_glyphDims;
};
}