Setting simsun.ttc font in aspoe pdf java

Hi Team,

Can you please guide me on how to set the simsun.ttc from system folder. I have set the font like the below code
Way 1:
Font myFont = FontRepository.openFont(“C://Windows//Fonts//simsun.ttc,0”);

Way 2:
Font myFont = FontRepository.openFont(“C://Windows//Fonts//simsun.ttc”);

But both didnot wokk. please guide me on this

@Rathna91

If the font is installed in the System, you can use findFont() method like below:

FontRepository.findFont("FontName");