rkeen-siemens opened a new pull request, #5757:
URL: https://github.com/apache/netbeans/pull/5757

   Text displayed in the property sheet is escaped if the target font does not 
have a glyph for some of the characters. The existing implementation escapes 
some Unicode characters even if the target font can display them. This is due 
to the reliance on `Font.canDisplay(char)` which does not handle all Unicode 
characters.
   
   The solution here is to update `RendererFactory.makeDisplayable` to iterate 
over the code points in the string rather than the characters. It then uses 
`Font.canDisplay(int)` to validate the glyph availability using the code point.
   
   Unit tests are included to verify the existing behavior is maintained. All 
passed for the original code except `testDoesNotEscapeDisplayableCodePoint`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to