#DOCUMENTATION by cg
class: GraphicsContext
comment/format in:
#characterEncoding
#characterEncoding:
#initialize
--- a/GraphicsContext.st Tue Apr 12 16:18:31 2016 +0200
+++ b/GraphicsContext.st Tue Apr 12 16:18:42 2016 +0200
@@ -723,10 +723,7 @@
characterEncoding
"returns a symbol describing how the contents is encoded internally.
- For now, this should be the same encoding as my fonts encoding (otherwise, mappings would
- occur when drawing).
- This is (currently) only passed down from the fileBrowser,
- and required when japanese/chinese/korean text is edited.
+ This is now obsolete, as we are always using unicode internally.
(encoding is something like #'iso8859-5' #euc, #sjis, #jis7, #gb, #big5 or #ksc)"
^ characterEncoding
@@ -738,7 +735,8 @@
unicode (of which iso8859-1 is a subset) encoding.
The possibility to change the characterEncoding is provided as
a backward compatibility hook for programs which want to use
- another encoding internally. One such view is the CharacterSetView,
+ another encoding internally.
+ One such view is the CharacterSetView,
which wants to show character as they are actually present in a font."
|encodingSymOrNil|
@@ -2475,6 +2473,8 @@
joinStyle := #miter.
capStyle := #butt.
font := self class defaultFont.
+
+ "/ this is rubbish. we are now always using unicode internaly
characterEncoding := #'iso10646-1'. "/ aka unicode
! !