mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-24 03:45:56 +00:00
gnujpdf - use UTF-8 in string.getBytes() everywhere
This commit is contained in:
@@ -25,12 +25,12 @@ public class PDFEmbeddedFont extends PDFFont {
|
||||
@Override
|
||||
public void write(OutputStream os) throws IOException {
|
||||
writeStart(os);
|
||||
os.write("/Subtype /Type0\n".getBytes());
|
||||
os.write(("/BaseFont " + font + "\n").getBytes());
|
||||
os.write(("/Name " + name + "\n").getBytes());
|
||||
os.write("/Encoding /Identity-H\n".getBytes());
|
||||
os.write(("/ToUnicode " + toUnicode + "\n").getBytes());
|
||||
os.write(("/DescendantFonts [" + descendantFont + "]\n").getBytes());
|
||||
os.write("/Subtype /Type0\n".getBytes("UTF-8"));
|
||||
os.write(("/BaseFont " + font + "\n").getBytes("UTF-8"));
|
||||
os.write(("/Name " + name + "\n").getBytes("UTF-8"));
|
||||
os.write("/Encoding /Identity-H\n".getBytes("UTF-8"));
|
||||
os.write(("/ToUnicode " + toUnicode + "\n").getBytes("UTF-8"));
|
||||
os.write(("/DescendantFonts [" + descendantFont + "]\n").getBytes("UTF-8"));
|
||||
writeEnd(os);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user