Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor: Enable display of characters unsupported by chosen editor font #7753

Merged
merged 1 commit into from
Oct 12, 2024

Commits on Sep 15, 2024

  1. Editor: Enable display of characters unsupported by chosen editor font

    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.
    matthiasblaesing committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    b5c194d View commit details
    Browse the repository at this point in the history