font

扩展activiti中文乱码问题

冷暖自知 提交于 2019-12-07 16:01:15
本人博客开始迁移,博客整个架构自己搭建及编码 http://www.cookqq.com/listBlog.action 使用activiti时候,图片资源会出现乱码问题,如图: 乱码问题是困扰国人的第一大问题,神马都出现乱码,没天理啊! 修改乱码的方法: (1)直接修改源码: org.activiti.engine.impl.bpmn.diagram.ProcessDiagramCanvas类的构造函数 protected String activityFontName = "Arial"; public ProcessDiagramCanvas(int width, int height) { this.canvasWidth = width; this.canvasHeight = height; if (Context.getProcessEngineConfiguration() != null) { this.activityFontName = Context.getProcessEngineConfiguration().getActivityFontName(); } this.processDiagram = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); this.g =

20 Best Web Typography Tools, Frameworks and Libra

独自空忆成欢 提交于 2019-12-07 14:39:34
Do you know that web design is almost 95% of typography? If not, then let me explain you that a web designer who gets the right typography tools can create a popular website. Typography also includes the use of web fonts and modern CSS techniques that makes it easy for you to get complex things done in no time. Moreover, dealing typography is becoming common nowadays. All such typography tools can make things easy for you the way you render fonts. Furthermore, you will have more control over high quality fonts . For all such needs of a web designer, we have managed to round up some of the 20

jquery点击弹出登陆窗口

。_饼干妹妹 提交于 2019-12-07 09:52:04
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jquery点击弹出登陆窗口</title> <style> body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, code, del, dfn, em, img, strong, dd, dl, dt, li, ol, ul, fieldset, form, label, button, input, table, caption, tbody, tfoot, thead, tr, th, td, menu { margin:0; padding:0; } article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display

前端学习笔记-CSS

笑着哭i 提交于 2019-12-07 00:09:30
CSS的引入方式:   内嵌式引入:在标签内直接使用style属性,每个样式使用分号隔开。 1 <div style="color: red;font-size:25px ; 2 font-family: 'Microsoft Yahei';line-height: 50px"> 3 窗前明月光,<br /> 4 疑是地上霜。<br /> 5 举头望明月,<br /> 6 低头思故乡。<br /> 7 </div>   外联式引入:使用link标签引入本地css样式文件。 1 <link rel="stylesheet" type="text/css" href="main.css"> CSS选择器:   标签选择器:当前html下的所有div样式都是被设置成这样。 div{ color: red; }   id选择器:只能选择一个标签的一个id,但权重要比类选择器大。 #div2{ color: green; } <div id="div2">遥看瀑布挂前川。</div>   类选择器:可选择多个标签,拓展性高。 .gold{ color: gold; } <div class="gold">飞流直下三千尺,</div>   层级选择器:即在class类选择器下空格加个标签,从而实现只修改某个类下的某个标签下的内容。 .list li{ height: 30px; } <div

poi 带出excel (test 版)

China☆狼群 提交于 2019-12-06 17:41:29
1. /** * query and filter req by Sun * @throws Exception */ @Test public void testQueryWorkNos() throws Exception { System.err.println("start query data from wk table"); // List<String> bookingNos=Arrays.asList("UFL-BK180011447","UFL-BK180011448","UFL-BK180011450","UFL-BK180011467","UFL-BK180011477","UFL-BK180011478"); // List<MilestoneInfo> milelist = workTableRepository.findByBookingNoIn(bookingNos); TreeSet<String> courierBillNos = passExcel("/home/sea/Downloads/exceptional_milestone_list.xlsx"); List<MilestoneInfo> milelist = workTableRepository.findByCourierBillNoIn(courierBillNos); Map

本人博客样式

风流意气都作罢 提交于 2019-12-06 16:37:35
#site_nav_under { display: none; } .c_ad_block, .ad_text_commentbox { display: none; margin: 0; padding: 0; } #ad_under_google { height: 0; overflow: hidden; } #ad_under_google a { display: none; } @charset "utf-8"; #EntryTag { margin-top: 20px; font-size: 9pt; color: gray; } .topicListFooter { text-align: right; margin-right: 10px; margin-top: 10px; } #divRefreshComments { text-align: right; margin-right: 10px; margin-bottom: 5px; font-size: 9pt; } * { margin: 0; padding: 0; } html { height: 100%; } body { background: url(https://i.loli.net/2017/08/15/59923c58cc40f.jpg) no-repeat fixed;

inline-block 前世今生

冷暖自知 提交于 2019-12-06 15:30:17
曾几何时,display:inline-block 已经深入「大街小巷」,随处可见 「display:inline-block; *display:inline; *zoom:1; 」这样的代码。如今现代浏览器已经全面支持这个属性值了,上面的代码只是为了兼容 IE6、7 而已。那么你真的了解 inline-block 了吗?本文将带你深入剖析该属性值的前世今生,让你更好的理解和运用 inline-block。(本文约定 display:inline-block 简写为 inline-block) 开篇我们来看几个问题: IE6、7 真的不支持 display:inline-block 吗? display:inline-block 后的元素为什么会产生水平空隙,这真的是 bug 吗? 如何更好的解决 display:inline-block 元素间产生的水平空隙? 一、inline-block 前世 1.认知 也许有人问你为何要写「 display:inline-block; *display:inline; *zoom:1; 」 来兼容 IE6、7 时,你会立马答道:因为 IE6、7 不支持 display:inline-block 呗!不知道何时起,惯性思维给开发者带来了这样一个可怕的概念。万物都是辩证的,当你写下这些的时候,可曾怀疑过大众观点真的可靠吗?也许你认为这些无关

rem

可紊 提交于 2019-12-06 14:16:06
1 目前,IE9+,Firefox、Chrome、Safari、Opera 的主流版本都支持了rem。 就算对不支持的浏览器,应对方法也很简单,就是多写一个绝对单位的声明。这些浏览器会忽略用rem设定的字体大小。 使用%单位方便使用 css中的body中先全局声明font-size=62.5%,这里的%的算法和rem一样。 因为100%=16px,1px=6.25%,所以10px=62.5%, 这是的1rem=10px,所以12px=1.2rem。px与rem的转换通过10就可以得来,很方便了吧! 使用方法 注意,rem是只相对于根元素htm的font-size,即只需要设置根元素的font-size,其它元素使用rem单位设置成相应的百分比即可; /*16px * 312.5% = 50px;*/ html{font-size: 312.5%;} /*50px * 0.5 = 25px;*/ body{ font-size: 0.5rem; font-size\0:25px; } @media only screen and (min-width: 320px){ html { font-size: 62.5% !important; } } @media only screen and (min-width: 640px){ html { font-size: 125%

pip安装任何包都出现问题

只愿长相守 提交于 2019-12-06 12:52:52
<!DOCTYPE html> */ /*--> */ PS:以下操作全部基于win10 64位操作系统 pip安装任何包都出现问题: Cannot unpack file /tmp/pip-KzJgHD-unpack/simple 报错: Cannot unpack file /tmp/pip-KzJgHD-unpack/simple (downloaded from /tmp/pip-M1hKq2-build, content-type: text/html; charset=utf-8); cannot detect archive format Cannot determine archive format of /tmp/pip-M1hKq2-build 解决: 需要添加 --extra-index-url 如: pip install --extra-index-url http://mirrors.aliyun.com/pypi/simple/ config --extra-index-url <url> Extra URLs of package indexes to use in addition to --index-url. Should follow the same rules as --index-url 安装模块失败,错误如下 error:

python 图片上添加文字

社会主义新天地 提交于 2019-12-06 12:18:44
搬运链接 : https://www.cnblogs.com/tk091/p/4331327.html import PIL from PIL import ImageFont from PIL import Image from PIL import ImageDraw #设置字体,如果没有,也可以不设置 font = ImageFont.truetype("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf",13) #打开底版图片 imageFile = "base.png" im1=Image.open(imageFile) # 在图片上添加文字 1 draw = ImageDraw.Draw(im1) draw.text((0, 0),"1",(255,255,0),font=font) draw = ImageDraw.Draw(im1) # 保存 im1.save("target.png") 来源: https://www.cnblogs.com/xdd1997/p/11982938.html