int left, right;
int maxW;
bool changeLine;
-
- void * font = surface.GetFont();
+ Font font;
// Compute aligned objects
left = cellX + table.cellPadding; // Add cell border/margins here?
right = Max(left, right);
maxW = right - left;
+ font = surface.font;
newLineH = ComputeLine(surface, block, textPos, &nextCellBlock, &nextCellPos, ¢ered, &lineW, maxW, maxH, RenderFlags {}, y, &leftObjects, &rightObjects, &changeLine, false, 0, 0);
-
- surface.TextFont(font);
+ surface.font = font;
if(cell.halign == middle || thisLineCentered)
{
int maxW;
bool changeLine;
- void * font = surface.GetFont();
+ Font font;
// Compute aligned objects
left = cellX + table.cellPadding; // Add cell border/margins here?
right = Max(left, right);
maxW = right - left;
+ font = surface.font;
newLineH = ComputeLine(surface, block, textPos, &nextCellBlock, &nextCellPos, ¢ered, &lineW, maxW, maxH, RenderFlags {}, y, &leftObjects, &rightObjects, &changeLine, false, 0, 0);
+ surface.font = font;
- surface.TextFont(font);
+ //surface.TextFont(font);
if(cell.halign == middle || thisLineCentered)
{
int maxW;
bool changeLine;
- void * font = surface.GetFont();
+ Font font;
// Compute aligned objects
left = cellX + table.cellPadding; // Add cell border/margins here?
right = Max(left, right);
maxW = right - left;
+ font = surface.font;
newLineH = ComputeLine(surface, block, textPos, &nextCellBlock, &nextCellPos, ¢ered, &lineW, maxW, maxH, RenderFlags {}, y, &leftObjects, &rightObjects, &changeLine, false, 0, 0);
+ surface.font = font;
- surface.TextFont(font);
+ // surface.TextFont(font);
if(cell.halign == middle || thisLineCentered)
{