search for: hastextutf8

Displaying 2 results from an estimated 2 matches for "hastextutf8".

2008 Jan 28
0
Notes for writers of graphics devices
...ace are 1) 'useRotatedTextInContour'. Set this to true if the device can produce high-quality rotated text in the standard fonts, which will then be used in preference to Hershey fonts for labelling contour lines. This the new default for postscript() and pdf() but not X11(). 2) 'hasTextUTF8' If set, you need to supply functions textUTF8 and strWidthUTF8 which are just like text and strWidth but will be passed text in UTF-8. Note that these are alternatives: the graphics engine will only use the UTF-8 versions when this avoids re-encoding. Another thing I see is with metricIn...
2008 Jan 27
0
Character encodings and packages
...-8 and handle it in UTF-8. This will be easiest to do in R >= 2.7.0 using the function translateCharUTF8(). For writers of graphics devices where is a further twist in R >= 2.7.0: currently text is passed to the graphics device in the native encoding, but by setting the DevDesc variable hasTextUTF8 to TRUE you can indicate to the graphics engine the ability to accept text in UTF-8. This is done in several of the standard devices: for example windows() was already re-encoding to UCS-2 for plotting, and postscript()/pdf() also re-encode to the selected single-byte encoding. Character dat...