From 26933c6be705219d5e9fabd33cb4d501f3651abd Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Thu, 25 Apr 2013 16:28:44 +0100 Subject: docview: refactored text encoding version docview now uses a single fpGUI call to do encoding conversions. This make is much easier to maintaing - a single method needs to be modified if new encoding conversions get added. --- docview/components/richtext/CanvasFontManager.pas | 8 -------- 1 file changed, 8 deletions(-) (limited to 'docview/components/richtext') diff --git a/docview/components/richtext/CanvasFontManager.pas b/docview/components/richtext/CanvasFontManager.pas index 9e9114ec..fe0123d3 100644 --- a/docview/components/richtext/CanvasFontManager.pas +++ b/docview/components/richtext/CanvasFontManager.pas @@ -313,14 +313,6 @@ var t: TfpgString; begin t := s; - //case Settings.Encoding of - // encUTF8: t := IPFToUTF8(t); - // encCP437: t := CP437ToUTF8(t); - // encCP850: t := CP850ToUTF8(t); - // encIBMGraph: t := IBMGraphToUTF8(t); - //else - // t := IPFToUTF8(t); - //end; FCanvas.DrawString(Point.X, Point.Y, t); Point.x := Point.X + Canvas.Font.TextWidth(t); end; -- cgit v1.2.3-70-g09d2