From 426cb6432d21ce20103c010a2f4b31e9afa3168d Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 22 Jun 2008 16:31:00 +0000 Subject: [PATCH] Corrected a stupid error where MeasureCharacterRanges was called with incorrect parameters. --- Source/Utilities/Fonts/TextPrinter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Utilities/Fonts/TextPrinter.cs b/Source/Utilities/Fonts/TextPrinter.cs index 16703a7a..c9f80b45 100644 --- a/Source/Utilities/Fonts/TextPrinter.cs +++ b/Source/Utilities/Fonts/TextPrinter.cs @@ -207,7 +207,7 @@ namespace OpenTK.Graphics if (alignment == StringAlignment.Near && !rightToLeft || alignment == StringAlignment.Far && rightToLeft) { ICollection ranges = new List(); - font.MeasureCharacterRanges(text, StringFormat.GenericTypographic, ref ranges); + font.MeasureCharacterRanges(text, ref ranges); int current = 0; //foreach (char c in text)