diff --git a/Lib/fontTools/ufoLib/glifLib.py b/Lib/fontTools/ufoLib/glifLib.py index 3c48a664c..3145c0992 100755 --- a/Lib/fontTools/ufoLib/glifLib.py +++ b/Lib/fontTools/ufoLib/glifLib.py @@ -622,8 +622,8 @@ def _writeGlyphToBytes( def writeGlyphToString(glyphName, glyphObject=None, drawPointsFunc=None, formatVersion=2, validate=True): """ - Return .glif data for a glyph as a Unicode string (`unicode` in py2, `str` - in py3). The XML declaration's encoding is always set to "UTF-8". + Return .glif data for a glyph as a string. The XML declaration's + encoding is always set to "UTF-8". The 'glyphObject' argument can be any kind of object (even None); the writeGlyphToString() method will attempt to get the following attributes from it: