java - Load font file from resources folder -
i seek load font file in resources folder:
url url = this.getclass().getresource("/com/fuentes/fuente.ttf"); file file = new file(url.touri()); newfont = pdtruetypefont.loadttf(documento, file);
but error:
uri not hierarchical
java file fonts pdfbox true-type-fonts
No comments:
Post a Comment