mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
feat: non-monospaced fonts support
This commit is contained in:
parent
93dbf34d15
commit
ae54ac9975
8 changed files with 90 additions and 46 deletions
|
|
@ -76,9 +76,9 @@ public:
|
|||
const Texture* getPage(int page) const;
|
||||
|
||||
FontMetrics getMetrics() const {
|
||||
return {lineHeight, yoffset, glyphInterval};
|
||||
return {std::nullopt, lineHeight, yoffset, glyphInterval};
|
||||
}
|
||||
|
||||
|
||||
const Glyph* getGlyph(int codepoint) const {
|
||||
return (codepoint < 0 || codepoint >= glyphs.size())
|
||||
? nullptr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue