yaclf
This commit is contained in:
@@ -45,8 +45,9 @@ void EpdFont::getTextBounds(const char* string, const int startX, const int star
|
|||||||
lastBaseX += fp4::toPixel(prevAdvanceFP + kernFP);
|
lastBaseX += fp4::toPixel(prevAdvanceFP + kernFP);
|
||||||
}
|
}
|
||||||
|
|
||||||
const int glyphBaseX = isCombining ? combiningMark::centerOver(lastBaseX, lastBaseLeft, lastBaseWidth, glyph->left, glyph->width)
|
const int glyphBaseX =
|
||||||
: lastBaseX;
|
isCombining ? combiningMark::centerOver(lastBaseX, lastBaseLeft, lastBaseWidth, glyph->left, glyph->width)
|
||||||
|
: lastBaseX;
|
||||||
const int glyphBaseY = startY - raiseBy;
|
const int glyphBaseY = startY - raiseBy;
|
||||||
|
|
||||||
*minX = std::min(*minX, glyphBaseX + glyph->left);
|
*minX = std::min(*minX, glyphBaseX + glyph->left);
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#include "Logging.h"
|
#include "Logging.h"
|
||||||
|
|
||||||
#include <HalClock.h>
|
#include <HalClock.h>
|
||||||
#include <algorithm>
|
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#define MAX_ENTRY_LEN 256
|
#define MAX_ENTRY_LEN 256
|
||||||
|
|||||||
Reference in New Issue
Block a user