opentype

How can I use and extract kerning pairs from from GPOS table in Opentype fonts to correctly show glyphs as Path2D in Java?

萝らか妹 提交于 2020-12-18 07:58:56
问题 This question is related to a few questions that have been asked long time ago. I saw comments that Opentype fonts were not supported in Java, but this was 11 years ago. Nowadays they are. The only problem is that kerning pairs are only given in the GPOS table. I have seen that they are there but it is hard to make sure the code is correct. I am currently dumping the GPOS table trying to follow the pointers until the kerning pairs. The code so far is below, where GPOS table has been

How can I use and extract kerning pairs from from GPOS table in Opentype fonts to correctly show glyphs as Path2D in Java?

牧云@^-^@ 提交于 2020-12-18 07:57:37
问题 This question is related to a few questions that have been asked long time ago. I saw comments that Opentype fonts were not supported in Java, but this was 11 years ago. Nowadays they are. The only problem is that kerning pairs are only given in the GPOS table. I have seen that they are there but it is hard to make sure the code is correct. I am currently dumping the GPOS table trying to follow the pointers until the kerning pairs. The code so far is below, where GPOS table has been

Convert Arabic TTF/OTF fonts to woff, eof?

偶尔善良 提交于 2019-12-30 03:16:25
问题 First I know there are similar questions to mine, and I do tried Font Squirrel Generator for tons of Arabic fonts, all of them render text in English correctly but none of them worked with Arabic letters!! so is there a desktop tool (since all web apps is not working) than can convert Arabic fonts without breaking them ?? I have purchased an Arabic font, and I just want to convert it so I can use it on the web, and I did not like the idea to pay subscriptions to some fancy websites like fonts

Qt QFont Kerning - Not Affecting/Kerning Font

≯℡__Kan透↙ 提交于 2019-12-23 22:12:47
问题 Problem: Kerning my QFont has no affect on the font's kerning as displayed in my QApplication . In Qt, kerning is applied to a QFont by default Tried QFont.setKerning(True) unsuccessfully QFont.setKerning(False) also has no affect on font display Font is OpenType ( .otf ) and QFont.kerning() returns True Kerning this font in other applications e.g., Microsoft Word is successful Other QFont methods, such as QFont.setLetterSpacing work successfully on this font Font is Idler, filename is Idler

Convert CFF fonts into OpenType fonts programmatically

家住魔仙堡 提交于 2019-12-21 22:40:42
问题 Does anyone have any pointers where I can find extra information on how to create an opentype wrapper around a CFF font? Currently I have a parser for CFF files so I can get all sorts of information out of it (cmap, glyph names, widths, names etc etc). Given this information I am unable to create an Opentype (truetype format like) wrapper so I can use the font on Windows using GDI; GDI will not load the Opentype font and the only thing I know is that it fails to load the font. Does anyone

PHP: Read TrueType/OpenType metadata of the font file

时间秒杀一切 提交于 2019-12-21 17:24:01
问题 How to read the fonts details? For example, fonts contain information like copyright, family name, designer, version, and more in their metadata. I would like also the script to be able to count the amount of glyphs in the file, as well as return what languages the font supports. For example, a typical font could contain western, swedish and romain language support, and have hundreds of glyphs. It should support truetype and opentype font files. Thanks in advance for any help on achieving

How to use the music font Bravura Text?

∥☆過路亽.° 提交于 2019-12-21 05:14:44
问题 I am trying to use an Open Type music font called Bravura Text. I want to use that font in an application that I am currently developing. I did a little research on the features of Bravura Text and the documentation of the font points out, that it is possible to write notes and adjust their vertical position on a staff . There are special characters to raise/lower a notehead on the staff to represent the different tones. I tried to use that features in text applications like Word 2013, Open

What are the windows requirements for an OpenType font to be installable?

女生的网名这么多〃 提交于 2019-12-21 04:41:27
问题 Niche programming question: I'm developing an OpenType font by byte-crafting it (rather than using design tools like Fontlab or FontForge), and now have a custom OpenType-CFF font that implements a subset of the Basic Latin unicode block (specifically it implements .notdef and the tilde). The CFF block passes tx -3 validation (http://www.adobe.com/devnet/opentype/afdko.html), the font as a whole passes a round-trip de/recompile through TTX (https://github.com/behdad/fonttools), and Microsoft

Modify Python Script to Batch Convert all “WOFF” Files in Directory

白昼怎懂夜的黑 提交于 2019-12-19 04:22:54
问题 I have been using a great open-source python script by GitHub user @hanikesn (see below) that converts a single WOFF file back into OTF format via command line (Terminal on Mac OS X). As it is now, I drag-and-drop the script to Terminal, then drag-and-drop a WOFF file to Terminal, press Enter, and the script creates an OTF in the same directory. The script can be invoked manually, but I find it much easier and much faster to drag-and-drop. However as a typographer, I work with large font

Getting different figure types with Google Web Fonts

佐手、 提交于 2019-12-18 12:34:30
问题 According to this page: [Raleway] is a display face and the download features both old style and lining numerals, standard and discretionary ligatures, a pretty complete set of diacritics, as well as a stylistic alternate inspired by more geometric sans-serif typefaces than its neo-grotesque inspired default character set. (Emphasis mine) The default for numerals is "old style" ("onum" OpenType feature string), which look pretty awful when used in headlines. Ideally, I'd like to be able to