matthiasblaesing opened a new pull request, #7753:
URL: https://github.com/apache/netbeans/pull/7753

   It was noticed, that in some contexts Swing was able to display characters 
unsupported by the currently chosen font. The problem was observed with emojis. 
Investigation showed, that the problem appears if a font is explicitly 
constructed via the constructor, but vanishes if the font is accessed via 
StyleContext#getFont.
   
   The difference is that StyleContext#getFont returns a CompositeFont, that 
fallsback to other fonts for undefined glyphs.
   
   As CompositeFont is located in the sun.font package, it can't be accessed 
directly. Instead the font acccess via the DefaultStyleContext is used.
   
   Before:
   ![Bildschirmfoto vom 2024-09-15 
17-27-56](https://github.com/user-attachments/assets/5330d926-424f-40e3-9541-07fba44e3d63)
   
   After:
   ![Bildschirmfoto vom 2024-09-15 
17-35-26](https://github.com/user-attachments/assets/04e379db-dde4-4177-9e5d-e620fe52f6cb)
   


-- 
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