mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-04 15:04:43 -04:00
The quest continues, almost done, but have an idea to rework GLFont.drawString() completly, TODO next time
This commit is contained in:
@@ -834,6 +834,17 @@ GLFont &GLFont::getFont(GLFontSize esize) {
|
||||
return fonts[internalFontSize];
|
||||
}
|
||||
|
||||
GLFont &GLFont::getRawFont(GLFontSize esize) {
|
||||
|
||||
//Do not apply the scaling, really returns the requested font.
|
||||
|
||||
|
||||
//load lazily...
|
||||
fonts[esize].loadFontOnce();
|
||||
|
||||
return fonts[esize];
|
||||
}
|
||||
|
||||
|
||||
void GLFont::setScale(GLFontScale scale) {
|
||||
|
||||
|
||||
@@ -102,6 +102,9 @@ public:
|
||||
//it will be translated to another font depending of the scale level
|
||||
static GLFont& getFont(GLFontSize esize);
|
||||
|
||||
//Return the requested raw font, without applying scaling.
|
||||
static GLFont &GLFont::getRawFont(GLFontSize esize);
|
||||
|
||||
//Called to change the scale of the rendered fonts
|
||||
static void setScale(GLFontScale scale);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user