Corrected a stupid error where MeasureCharacterRanges was called with incorrect parameters.
This commit is contained in:
parent
4b47612234
commit
f40073b1b9
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ namespace OpenTK.Graphics
|
|||
if (alignment == StringAlignment.Near && !rightToLeft || alignment == StringAlignment.Far && rightToLeft)
|
||||
{
|
||||
ICollection<RectangleF> ranges = new List<RectangleF>();
|
||||
font.MeasureCharacterRanges(text, StringFormat.GenericTypographic, ref ranges);
|
||||
font.MeasureCharacterRanges(text, ref ranges);
|
||||
|
||||
int current = 0;
|
||||
//foreach (char c in text)
|
||||
|
|
Loading…
Reference in a new issue