java - getting exception with ITEXT at BaseFont.createFont -
i trying create font
basefont base = basefont.createfont("/users/imac/library/desktop/thsarpsk.ttf",basefont.identity_h,basefont.embedded); font font = new font(base, 18f);
but have problem path locating font .
i'm working on android platform on mac pc, tried many solutions, unable solve.
below 1 of solution path of font on windows
basefont.createfont("c:\\winnt\\fonts\\comic.ttf", basefont.winansi, basefont.embedded);
i try adapt mac sent me exception
java.io.ioexception:\users\imac\library\desktop\thsarpsk.ttf not found file or resource.
i trying solve problem many days, please me.
Comments
Post a Comment