脚本宝典收集整理的这篇文章主要介绍了flowable 工作流生成的png图片汉字乱码,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
flowable 流程图片中文乱码
package org.fh.config;
import org.flowable.spring.SpringProcessEngineConfiguration;
import org.flowable.spring.boot.EngineConfigurationConfigurer;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotyPE.Controller;
/**
* 说明:Flowable配置
* 作者:FH Admin
* From:fhadmin.cn
*/
@Controller
@Configuration
public class FlowableConfig implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> {
@override
public void configure(SpringProcessEngineConfiguration engineConfiguration) {
engineConfiguration.setActivITyFontName("宋体");
engineConfiguration.setLabelFontName("宋体");
engineConfiguration.setAnnotationFontName("宋体");
}
}
2. 操作系统字体库,有宋体字体资源。 windows操作系统基本都有宋体,linux等一般没有,需要自行添加
以上是脚本宝典为你收集整理的flowable 工作流生成的png图片汉字乱码全部内容,希望文章能够帮你解决flowable 工作流生成的png图片汉字乱码所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。