String filename="F:/Users/Administrator/workspace_workflow/activiti tu/src/main/resources/pms_template/ONE.bpmn"; System.out.println(processEngineConfiguration.getActivityFontName()); System.out.println(processEngineConfiguration.getLabelFontName()); byte[] bytes_s=Files.readAllBytes(new File(filename).toPath()); BpmnXMLConverter bpmnXMLConverter = new BpmnXMLConverter(); BpmnModel bpmnModel=bpmnXMLConverter.convertToBpmnModel(new BytesStreamSource(bytes_s), false, false); // no need to validate schema, it was already validated on deploy InputStream is = ProcessDiagramGenerator.generateDiagram( bpmnModel, "png", Collections.EMPTY_LIST);
File file = new File("F:/Users/Administrator/workspace_workflow/activiti tu/src/main/resources/pms_template/ONE.png"); OutputStream outputStream = new FileOutputStream(file);
i already set processEngineConfiguration property "activityFontName" && "labelFontName" to asian font name. It is still bad font display…….. how can i fix it? please help me!