Block block = startBlock;
int startSel, endSel;
Block startSelBlock = null, endSelBlock = null;
+ int prevGlyph = 0;
if(browser.textBlock != browser.selBlock || browser.curPosition != browser.selPosition)
browser.NormalizeSelection(&startSelBlock, &startSel, &endSelBlock, &endSel);
int l = startSel - textPos;
if(block.text)
{
- surface.TextExtent(block.text + textPos, l, &tw, &th);
+ surface.TextExtent2(block.text + textPos, l, &tw, &th, prevGlyph, &prevGlyph, null);
surface.WriteText(x, y + h - th, block.text + textPos, l);
x += tw;
}
surface.foreground = white;
surface.textOpacity = true;
}
- surface.TextExtent(block.text + textPos, len, &tw, &th);
+ surface.TextExtent2(block.text + textPos, len, &tw, &th, prevGlyph, &prevGlyph, null);
surface.WriteText(x, y + h - th, block.text + textPos, len);
x += tw;
if(browser.isSelected)
int l = endPos - textPos;
if(block.text)
{
- surface.TextExtent(block.text + textPos, l, &tw, &th);
+ surface.TextExtent2(block.text + textPos, l, &tw, &th, prevGlyph, &prevGlyph, null);
surface.WriteText(x, y + h - th, block.text + textPos, l);
x += tw;
}