diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2013-04-25 16:28:44 +0100 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2013-04-25 16:28:44 +0100 |
commit | 26933c6be705219d5e9fabd33cb4d501f3651abd (patch) | |
tree | 4bfec2f85f21251fdd98df927703e11fdab1ee97 /docview/components | |
parent | b0108d7f88a41ceadd707ed0b865da35956e2a50 (diff) | |
download | fpGUI-26933c6be705219d5e9fabd33cb4d501f3651abd.tar.xz |
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.
Diffstat (limited to 'docview/components')
-rw-r--r-- | docview/components/richtext/CanvasFontManager.pas | 8 |
1 files changed, 0 insertions, 8 deletions
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; |