Quantcast
Channel: [EN] OpenPLi Third-Party Development
Viewing all articles
Browse latest Browse all 1691

Odd newline and return characters in eTextPara

$
0
0

I've been look in at some bugs in justification (dirBlock) in eTextPara (lib/gdi/font.cpp), and I've been a bit puzzled by some odd alternatives for newline ('\n') and return ('\r') in eTextPara::renderString().

 

The alternatives for '\n' (U+000A) are U+008A (LINE TABULATION SET) and U+E08A (character in the Unicode Private Use Area)

 

The alternatives for '\r' (U+000D) are U+0086 (START OF SELECTED AREA), U+0087 (END OF SELECTED AREA), U+E086 and U+E087 (characters in the Unicode Private Use Area).

 

They seem to be odd choices as alternatives for '\n' and '\r'. Are they actually used as that anywhere? Does anyone know the history of this? They seem to have been like that since 2003, so perhaps th answer is lost in the mists of time...


Viewing all articles
Browse latest Browse all 1691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>