RFR: 8190907: Windows 10 default Korean Font Malgun Gothic available not used by GUI elements even though available without Korean Language Pack [v3]

Dmitry Batrak dbatrak at openjdk.java.net
Fri Mar 11 13:08:44 UTC 2022


On Fri, 11 Mar 2022 12:47:28 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Revert dialogInput. Add Bolditalic
>
> I tested with this test and I got the following output which seems to suggest "serif" korean is working...
> 
> BufferedImage bi = new BufferedImage(400, 200, BufferedImage.TYPE_INT_RGB);
>         Graphics2D g = bi.createGraphics();
>         g.setColor(Color.WHITE);
>         g.fillRect(0,0,400,200);
>         g.setColor(Color.BLACK);
>         g.setFont(new Font("sansserif", Font.PLAIN, 20));
>         g.drawString("테스트", 100, 150);
>         g.setFont(new Font("serif", Font.BOLD, 20));
>         g.drawString("테스트", 100, 100);
>         ImageIO.write(bi, "png", new File("image.png"));
> 
> ![image](https://user-images.githubusercontent.com/43534309/157869281-caece0c1-6a79-4a0a-93dc-bec9565709be.png)

@prsadhuk Do you have Korean font pack installed? Batang font, in particular.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7643



More information about the client-libs-dev mailing list