app_server: Don't offset first glyph with additional spacing
Untested, but should be correct... will test in a minute.
This commit is contained in:
parent
ab29480f78
commit
24c156daf5
@ -219,7 +219,7 @@ GlyphLayoutEngine::LayoutGlyphs(GlyphConsumer& consumer,
|
||||
const char* start = utf8String;
|
||||
while ((charCode = UTF8ToCharCode(&utf8String))) {
|
||||
|
||||
if (offsets) {
|
||||
if (offsets != NULL) {
|
||||
// Use direct glyph locations instead of calculating them
|
||||
// from the advance values
|
||||
x = offsets[index].x;
|
||||
@ -233,7 +233,7 @@ GlyphLayoutEngine::LayoutGlyphs(GlyphConsumer& consumer,
|
||||
x += advanceX;
|
||||
y += advanceY;
|
||||
|
||||
if (delta)
|
||||
if (delta != NULL && index > 0)
|
||||
x += IsWhiteSpace(charCode) ? delta->space : delta->nonspace;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user