设置加载默认资源时, 给文字点选验证码加默认的字体包

This commit is contained in:
天爱有情
2025-04-09 16:06:10 +08:00
parent 09abccc3e8
commit 48bfa27ec8
2 changed files with 5 additions and 0 deletions
@@ -66,6 +66,11 @@ public class DefaultBuiltInResources {
template1.put(TEMPLATE_FIXED_IMAGE_NAME, new Resource(type, finalPathPrefix.concat("/rotate_1/fixed.png"))); template1.put(TEMPLATE_FIXED_IMAGE_NAME, new Resource(type, finalPathPrefix.concat("/rotate_1/fixed.png")));
resourceStore.addTemplate(CaptchaTypeConstant.ROTATE, template1); resourceStore.addTemplate(CaptchaTypeConstant.ROTATE, template1);
}); });
// 字体包
defaultTemplateResource.put(FontCache.FONT_TYPE, resourceStore -> {
resourceStore.addResource(FontCache.FONT_TYPE,new Resource(type, finalPathPrefix.concat("/fontS/SIMSUN.TTC")));
});
} }