wpf//获取文字长度 private double MeasureTextWidth(string text, double fontSize, string fontFamily) { FormattedText formattedText = ...
分类:
其他好文 时间:
2014-08-27 18:08:58
阅读次数:
185
使用cc.LabelTTF:create(txt, fontname, fontsize); 字体没能显示出来, 这里使用的是系统字体, 比如我使用"微软雅黑", 作为fontname. 就没能显示出这样的字体. 因为传入的字体名称不对! 下面是一些字体的"真正名称", 即在程序中使用的名称Mac ...
分类:
其他好文 时间:
2014-08-06 21:43:42
阅读次数:
333
1.toolTip换行符2.设定工具条提示的样式[javascript]view plaincopyToolTip{fontSize:19;color:#FF6699;}3.设定工具提示宽度[javascript]view plaincopy4.使用工具条提示事件toolTipCratetoolTi...
分类:
其他好文 时间:
2014-08-06 18:35:32
阅读次数:
411
文本属性Attributes1.NSKernAttributeName: @10 调整字句 kerning 字句调整2.NSFontAttributeName : [UIFont systemFontOfSize:_fontSize] 设置字体3.NSForegroundColorAttribute...
分类:
其他好文 时间:
2014-08-04 13:46:37
阅读次数:
234
建立403error页面,403.html<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Error403</title></head><body><b><fontsize=5>S..
分类:
其他好文 时间:
2014-05-08 16:42:09
阅读次数:
541