fonts

wkhtmltopdf custom font letter spacing

杀马特。学长 韩版系。学妹 提交于 2020-01-04 14:02:53
问题 I'm running wkhtmltopdf on linux server (centos.10.x86_64). I'm trying to add "Times New Roman" font to the page. I see the fonts but on some font sizes it adds spaces between the letters . I tried setting the font by installing it on the machine (ttf) or by calling an external odf that I converted from the ttf or by adding it with base64 (css). It looks good on all, but it inserts spaces between the laters. I also tried to the dpi parameter but still the spaces are generated. Generating the

EaselJS custom font lineheight cross browser issues

馋奶兔 提交于 2020-01-04 13:59:28
问题 I'm having a few issues with the positioning of text looking vastly different in different browsers with Easel JS when embedding a custom font. I think it may be the line height, but there is no way to control this with EaselJS as far as I am aware. I have tried changing the line-height as well as some other properties of the body in CSS and in the font-face declaration but had no success! as you can see it is only Firefox causing any problems, It also appears correctly (like chrome, IE and

iPhone UIFont boldFont With name

时光怂恿深爱的人放手 提交于 2020-01-04 12:48:05
问题 I have looked at the headers for UIFont but it has all class methods and only one instance method and some useless properties. I would like to know how to set the font to have a font name, and bold font weight kinda like [[UIFont alloc] initWithFontName:@"Courier New" weight:@"Bold" size:14]; . Thanks for any help in advance! ~Thommy 回答1: I figured out the answer, and that was to use the font-family's bolded version of the font: CourierNewPS-BoldMT and that worked : I found this out by using

iPhone UIFont boldFont With name

本秂侑毒 提交于 2020-01-04 12:47:23
问题 I have looked at the headers for UIFont but it has all class methods and only one instance method and some useless properties. I would like to know how to set the font to have a font name, and bold font weight kinda like [[UIFont alloc] initWithFontName:@"Courier New" weight:@"Bold" size:14]; . Thanks for any help in advance! ~Thommy 回答1: I figured out the answer, and that was to use the font-family's bolded version of the font: CourierNewPS-BoldMT and that worked : I found this out by using

Accented Character showing as é in a pdf Using Persits.PDF

懵懂的女人 提交于 2020-01-04 11:38:08
问题 I'm trying to display a name on a pdf using Persits.PDF (Persits URL), this particular name has a an accented character in it, this being é When I use the Arial font it works fine: Dim standardFont As PdfFont = doc.Fonts.Item("Arial") However when I use Helvetica, é is shown as é Dim standardFont As PdfFont = doc.Fonts.Item("Helvetica") strParams = "x=" & (leftMarginX + CDbl(1345)).ToString() & "; y=660; width=1430.5; size=42; color=#000000;" page.Canvas.DrawText(strFullName, strParams,

Embed custom font fot text box use in Visual Basic 2010

妖精的绣舞 提交于 2020-01-04 11:10:26
问题 OK I'm working on a problem tyring to embed a LCD type true type font in a text box. As for some background, I can get the lcd font to display if I install the font onto my system, then load it as the font type for the text box and it works great. However, it will not work as an embedded font in the application. I"m using a a Windows Forms Application in Visual Basic, from the Microsoft Visual Studio 2010 on a Windows 7 box. I have tried the following code using a private font collection from

How to Change Mobile fonts mean install custom fonts, to system [duplicate]

北城余情 提交于 2020-01-04 11:01:56
问题 This question already has answers here : android - install font to android platform without root (2 answers) Closed last year . How to change or install custom fonts to the Android device, What class or method is usable in custom Launchers that change the system fonts, of an android device, 回答1: There isn't a clear cut place (that I could find at least) where it states you can't do it. However, a google search on how to set custom font android leads you to two, and only two ways: Root it Use

how to use font file

匆匆过客 提交于 2020-01-04 08:20:23
问题 I wanna use custom font file. For that below is my code XML file: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:id="@+id/custom_font" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="This is the Chantelli Antiqua font." /> </LinearLayout> Java code: TextView txt =

Loading custom fonts at runtime for use with JTextPane

感情迁移 提交于 2020-01-04 06:14:49
问题 Thanks for your time. My question is regarding the display of different fonts within the one JTextPane. My client wishes to view a word in two different languages within the one field. They've explicitly specified that they wish the different languages (namely Amharic, Arabic, Coptic and Hebrew) to be shown with different fonts. These are obviously non-standard fonts and I can't rely on the user having the required fonts installed on their OS. From my research I've found that I can load a

Is there a known way to have a textarea with the password type?

◇◆丶佛笑我妖孽 提交于 2020-01-04 05:56:51
问题 So I am currently trying to get a textarea with the password type (actually like an input). I've try to create my own font (with only black points) but it's a bit hard... I've tried some Jquery but that was not concluant either. Thanks for your help. 回答1: This post: How to make a Textarea act like a password field mentions using the keydown event to replace things in the box with whatever you want. Of course, you'll need to store the entered text in some javascript variable at the same time.