I am using a custom font (TTF) in my Java application where i set the font into graphics and do some DrawText.
Currently I use Font.createFont() to load the custom TTF font. But When i try to print the graphics canvas into a Virtual PDF Printer(PDFCreator Virtual printer), only the fonts installed in my Windows comes as actual text. The custom font i loaded is rasterized while printing. So my custom font texts are not selectable in the produced PDF.
Is there any way to avoid this? Does anyone know what is the difference between setting a installed font to the canvas and setting the Custom font created using Font.CreateFont to the canvas.