true-type-fonts

C# lib for processing font files - TTF (TrueType), others [closed]

可紊 提交于 2019-12-29 04:22:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Any known C# library or project out there that can understand the TTF file format? Most questions Ive seen regarding this are attempting to do custom rendering, but I'm more interested in a font editor type of application. 回答1: Don't know what you want to do exactly, but WPF has a cool GlyphTypeface Class that

How to repair a PDF file and embed missing fonts

孤街醉人 提交于 2019-12-28 13:21:13
问题 I use pdftk to repair some failures in corrupted PDF files, but I faced another problem which is not fixed by pdftk (or at least I do not know how to do so). I have PDF files with text based on TrueType fonts, but the fonts have not been embedded during PDF creation. Now I want to embed the required fonts to the existing files. Is there a command-line tool (like pdftk ) to embed missing fonts by providing path to TTF files? 回答1: You can use Ghostscript to embed missing fonts. Run the command

How to load a TrueTypeFont with different parameters? LibGDX

允我心安 提交于 2019-12-25 14:44:13
问题 The way I have been doing it so far is copying the same font, saving under another name and loading it with different parameters. I am trying to develop an app in LibGDX and by saving the font as different files takes more memory than necessary. Isn't there a way of loading 1 font multiple times, each time with different parameters? 回答1: Take a look of this example, I am creating a list of BitmapFont object having different size by simply changing attributes of FreeTypeFontGenerator

Font not kerning in iOS

心不动则不痛 提交于 2019-12-25 04:10:30
问题 I've created a custom font using FontForge for use in my iOS app. When I use the font in my app, kerning is not being applied. There is a known bug that kerning is not being applied for UITextView. I'm using this in a UILabel and UITextField, so that's not the issue. I'm targeting iOS 5.0. I'm able to view the font in Font Book and Pages and see that kerning is working. However, kerning doesn't work in Word for Mac. I have enabled kerning in Word, but it does not work there. I'm not concerned

Render php image with own font

。_饼干妹妹 提交于 2019-12-25 00:03:13
问题 I want to use a own font (True Type) in this code: <?php header("Content-type: image/png"); // Email adres renderen $email = "mail@mail.nl"; $length = (strlen($email)*8); $im = @ImageCreate ($length, 20) or die ("Kan geen nieuwe afbeelding genereren"); $background_color = ImageColorAllocate ($im, 53, 88, 121); // Container BG: 53,88,121 $text_color = ImageColorAllocate ($im, 194, 212, 229); imagestring($im, 3,5,2,$email, $text_color); imagepng ($im); ?> How can i change the font in: Open Sans

What unit is “advanced” stored in for True Type fonts table “hmtx”?

丶灬走出姿态 提交于 2019-12-24 21:33:14
问题 I am running a very simple script that I wrote to get the " advance " of True Type fonts. The font in specific is New Times Roman. This is the kind of values that I'm getting back, { "A" : 1479 "a" : 909, "B" : 1366, "b" : 1024 "C" : 1366, "c" : 909, "N" : 1479, "n" : 1024, "M" : 1821, "m" : 1593, "." : 512, } I'm using the Perl library Font::TTF, you can find the manual here. And, here is my script, use strict; use warnings; use autodie; use Font::TTF::Font; my $f = Font::TTF::Font->open('

Windows Phone 7 - How to use TTF in SpriteFont?

让人想犯罪 __ 提交于 2019-12-24 14:16:30
问题 Is there any way to use custom fonts in XNA? 回答1: Sure, you need to import the font to your system. Add the font to the font system catalog or add through control panel. When it is ready (reboot Visual Studio) use the custom template for SpriteFont in Visual studio, which generates an XML file. An exmaple: <?xml version="1.0" encoding="utf-8"?> <!-- This file contains an xml description of a font, and will be read by the XNA Framework Content Pipeline. Follow the comments to customize the

Indic font support in Apache FOP

情到浓时终转凉″ 提交于 2019-12-24 11:24:37
问题 While using Apache FOP 2.2 from my Java application to print Hindi strings in PDF by using mangal.ttf, some Hindi characters are not displayed correctly. I am Using JDK 1.8 and spring MVC. I tried lohit.ttf, devanagari.ttf, aparajita.ttf and kokila.ttf but all have the same issue. case 1: When fop-conf.xml is set as below: <font kerning="yes" embed-url="classpath:/mangal.ttf" > <font-triplet name="Mangal" style="normal" weight="normal"></font-triplet> </font> Result: से is shown like this स े

How can I convert TrueType font to PCL5 Soft font?

主宰稳场 提交于 2019-12-24 09:30:41
问题 How can I convert a TrueType font to PCL5 softfont(.spf) ? The main idea is to embed the softfont in the PCL5 printing file, then select it to use by the printer true it's stated font ID with PCL5 commands. Also if you know a better way of using TrueType fonts in creating PCL5 file, I am opened to suggestions. 回答1: I know that this is an old post and the the OP has moved on, but in case anyone comes around to this, you can use the utility PCL Paraphernalia. Go to Tool > Soft Font Generate 来源:

Missing chars in JpGraph

安稳与你 提交于 2019-12-24 07:42:14
问题 I have a web site that runs on Windows and uses cp1252 (aka Win-1252 ) so it can display Spanish characters. The app generates some plots with JpGraph 2.3 . These plots use the Tahoma Open Type font family to display text labels. Strings are provided in ANSI (i.e., cp1252) and font files support cp1252 (actually, the *.ttf files were copied from the system's font folder). It's been working fine in several setups from PHP/5.2.6 to PHP/5.3.0. Problems started when I ran the app under PHP/5.3.1