font

iTextSharp international text

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a table in asp.net page,and trying to export it as a PDF file,I have couple of international characters that are not shown in generated PDF file,any suggestions, Thanks in advance 回答1: The key for proper display of alternate characters sets (Russian, Chinese, Japanese, etc.) is to use IDENTITY_H encoding when creating the BaseFont. Dim bfR As iTextSharp . text . pdf . BaseFont bfR = iTextSharp . text . pdf . BaseFont . CreateFont ( "MyFavoriteFont.ttf" , iTextSharp . text . pdf . BaseFont . IDENTITY_H , iTextSharp . text .

Apache POI autoSizeColumn Resizes Incorrectly

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Apache POI in java to create an excel file. I fill in the data then try to autosize each column, however the sizes are always wrong (and I think consistent). The first two rows are always(?) completely collapsed. When I autosize the columns in excel, it works perfectly. No blank cells are being written (I believe) and the resizing is the last thing I do. Here's the relevant code: This is a boiled down version without error handling, etc. public static synchronized String storeResults(ArrayList resultList, String file) { if

Get font color of the current GTK theme

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to get the font color of the current theme. I found this question that explains it how to do it in C with gtk_style_lookup_color , but it seems that the function is deprecated. Making more researches I found the new function gtk_style_context_lookup_color But I have problems understanding the docs. Also, when I try to call it by using Gtk.style_context_lookup_color( .. ) I get that it doesn't exists! Is it because I need to call it with something like GtkStyleContext.style_context_lookup_color(arg1,arg2) ? 回答1: I found the answer

Generate PDF document with Unicode characters using java and itext

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I try to adapt a standard code from the itext examples printing some additional Unicode symbols. Although the used font supports these characters, I do not get any result. (the last character "\u2609" is not printed to pdf) Thanks in advance! /* * These examples are written by Bruno Lowagie in the context of an article about fonts. */ package sandbox.fonts.tutorial; import com.itextpdf.text.Document; import com.itextpdf.text.DocumentException; import com.itextpdf.text.Font; import com.itextpdf.text.FontFactory; import com.itextpdf.text

iOS UIFont.ByName Exception (Value cannot be null. Parameter name: value)

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: In a custom Xamarin Forms iOS renderer I am loading fonts from files and when I get to UIFont.FromName it thorws the exception shown below. The font var is a valid CGFont instance and fontsize is a valid nfloat. Any ideas? var font = CGFont . CreateFromProvider ( fontDataProvider ); Control . Font = UIFont . FromName ( font . FullName , ( nfloat ) e . NewElement . FontSize ); stacktrace: System . ArgumentNullException : Value cannot be null . Parameter name : value at UIKit . UILabel . set_Font ( UIKit . UIFont value ) [ 0x00011 ]

dompdf character encoding UTF-8

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Im trying to create pdf with correct characters, but there are "?" chars. I created a test php file, where Im trying to fing the best solution. If Im open in the browser the html I looks like ok But when I look into the pdf I see this Here is my all code: What Im doing wrong? I tried many many options which I found :( Any idea? 回答1: You should read over the Unicode How-to again. The main problem is that you don't specify a font that supports your characters. It looks like you've read the how-to, because you're using the font example from

Cross browser @font-face use

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been having a lot of difficulties with using custom fonts and @font-face . I'm trying to get a font consistent across the latest versions of Chrome, Safari & Firefox (shown in that order in the screenshot below: I'm using the following to generate this: @font-face { font-family: 'dineng'; src: url('fonts/dineng.eot'); src: url('fonts/dineng.eot?#iefix') format('embedded-opentype'), url('fonts/dineng.woff') format('woff'), url('fonts/dineng.ttf') format('truetype'), url('fonts/dineng.svg#dineng') format('svg'); font-weight: normal; font

适配方案(一)之移动端适配

你说的曾经没有我的故事 提交于 2019-12-03 02:30:07
老版常规做法 方案一:Meida Queries媒体查询 meida queries 主要是通过查询设备的宽度来执行不同的 css 代码,最终达到界面的配置。核心语法是: @media screen and (max-width: 600px) { /*当屏幕尺寸小于600px时,应用下面的CSS样式*/ /*你的css代码*/ } 需要添加meta设置 <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> width=device-width :表示宽度是设备屏幕的宽度 initial-scale=1.0:表示初始的缩放比例 minimum-scale=1.0:表示最小的缩放比例 maximum-scale=1.0:表示最大的缩放比例 user-scalable=no:表示用户是否可以调整缩放比例 这个标签可以保证在移动端设备中,页面的宽度与屏幕宽度相同。 方案二:viewport缩放 以最小的Iphone4/5的宽度(320px)为基准,还原视觉稿。 < meta name= "viewport" content= "width=device-width, user

Google warning: Resource interpreted as Font but transferred with MIME type application/octet-stream

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a warning in Google for my font-face: Resource interpreted as Font but transferred with MIME type application/octet-stream: ".../Content/Fonts/iconFont.ttf". It works even if I have this warning but I prefer avoid this warning. Here is my declaration: @font-face { font-family: 'iconFont'; src: url('../Fonts/iconFont.eot?#iefix') format('embedded-opentype'), url('../Fonts/iconFont.svg#iconFont') format('image/svg+xml'), url('../Fonts/iconFont.woff') format('font/x-woff'), url('../Fonts/iconFont.ttf') format('truetype'); font-weight:

2019.10.29 笔记

旧时模样 提交于 2019-12-03 02:29:45
一、网页分层效果 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="2019.10.29.css"/> </style> </head> <body> <div id="big"> <div id="left"> <div id="l1">穷游体验馆</div> <div id="l2"> <div id="wenzi">免费体验名额20个</div> <div id="tiyan"></div> <div id="yincang">申请已结束</div> <img src="../image/111.png" > </div> <div id="l3">穿越时空的旅行者 猫王旅行体验官招募(开奖啦)</div> <div id="l4"> <div id="sz">499</div> <div id="jz"> 价值               元 </div> <div id="ckxq">查看详情</div> </div> <div id="l5"> <div id="ll1">近期参与</div> <div class="ll2"><img src="../image/头像1.jpg" ></div