mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 10:37:56 +02:00
11 lines
333 B
C++
11 lines
333 B
C++
#include "Glyph.h"
|
|
#include <StreamHelpers.h>
|
|
|
|
// We adjust bounds because offset is the bottom left corner of the font but the top left corner of a QRect
|
|
QRectF Glyph::bounds() const {
|
|
return glmToRect(offset, size).translated(0.0f, -size.y);
|
|
}
|
|
|
|
QRectF Glyph::textureBounds() const {
|
|
return glmToRect(texOffset, texSize);
|
|
}
|