Questions tagged [opentype]

OpenType is a cross-platform font file format developed jointly by Adobe and Microsoft. OpenType fonts contain information about the various typographical aspects of typefaces, such as vector outlines, typeface metadata, positional and substitution rules, etc. with all information encoded in table layouts.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Is there a font that uses glyf table point values to align compound glyph components?

For compound glyphs a font has to specify where the components of the glyph are positioned. This is usually done with s and y coordinates, but the glyf table allows using point values to align the ...
Waruyama's user avatar
  • 3,313
0 votes
1 answer
42 views

How in Swift do I iterate over all FourCharCode table tags for a loaded, OpenType font?

This may be just an UnsafeRawPointer question, but I don't quite know. In my Swift-based app, I have loaded an OpenType/TrueType font into a CoreText font object. I then ask for an array for all of ...
jsbox's user avatar
  • 314
0 votes
0 answers
48 views

How to identify characters with duplicate glyphs in a font?

I would like to identify if a font has characters that has same glyph i.e. drawing. For example, some fonts have star '*' glyph or drawing mapped to the characters from 0 to 9. Such font can not be ...
Sanjay's user avatar
  • 23
0 votes
0 answers
31 views

Problem locating 'cmap' subtables in TrueType file (C#)

I am writing a TrueType reader, mostly as an exercise to improve my understanding of both TrueType/OpenType and C#, but I have gotten stuck reading the tables, specifically the 'cmap' table (the first ...
Toblexson's user avatar
-1 votes
1 answer
134 views

"Windows Forms" seems to support OTF-Fonts. But why does it work, when everyone else says the opposite?

I thought that "Windows Forms" doesn't support OTF-Fonts. But by trying it anyways I realized the opposite. I just created a new "Windows Forms" project, which uses the ".NET ...
GeoMH's user avatar
  • 39
0 votes
1 answer
108 views

opentype.js: Path.fromSvg() method is not a function

I have created svg elements using the p5.js-svg librarie. Now i want to convert the svgs into paths so i can create glyphs with it. and the push the glyphs into a new fontfile. In the README file i ...
palmavilluan's user avatar
0 votes
0 answers
75 views

My custom webfont is not displaying properly in iOS 16

I have a website with Hebrew text which contains niqqud and cantillation (both are sets of diacritic marks). In order to ensure the proper display of these marks, I embedded a font on my site. Using ...
Inkbug's user avatar
  • 1,682
0 votes
0 answers
101 views

How can I fix the PDF preflight error: "The 'Widths' array in a font has an invalid length"

I am trying to validate a PDF file as part of IngramSpark's pre-publishing workflow. I upload the final PDF to be published, and their software (which I believe is pdfToolbox from Callas) runs a "...
hp_2001's user avatar
0 votes
0 answers
123 views

Using OpenType font features in iOS

It seems that in iOS, OpenType font-features and their selectors are identified by numbers. For example we have these in Frameworks/CoreText/SFNTLayoutTypes.h: enum { kAllTypographicFeaturesType = ...
Omid Golparvar's user avatar
2 votes
2 answers
2k views

VS Code: behavior of "editor.fontLigatures" and "editor.fontVariations"?

It has been possible to configure OpenType variations in "editor.fontLigatures" for a long time by now, but it's very limited. E.g., to configure the double-storey 'g' for the Iosevka font, ...
vjalle's user avatar
  • 619
0 votes
1 answer
1k views

FontForge - Add stroke to font with fill color and generate font

I need to apply a black outline to a font but maintain the white fill color. Expanding the stroke or adding an outline style applies the outline, but when I generate the .ttf or the .otf, the fill ...
K K's user avatar
  • 97
0 votes
2 answers
72 views

can i add a opentype feature in html/css?

is it possible to add a opentype features and lookups directly on html? like adding a kern lookup, Because the font dos not have propre kerning...
Shmulyt's user avatar
  • 13
2 votes
1 answer
364 views

Text is not converting to right svg code - Opentype Javascript

I am trying to convert text to svg in my React web app, but the resulted svg code which i am getting is not right, t's not showing svg. Code: import opentype from "opentype.js" async ...
Zain Shabir's user avatar
0 votes
1 answer
87 views

Disable OpenType `ccmp` Glyph Composition in CSS

I'm using a font called Lora in an Electron app, and I encountered a problem where text like mysterious `accent` is automatically converted to mysterious àccent due to OpenType glyph composition. <...
Benjamin Bray's user avatar
1 vote
0 answers
43 views

duplicate entries in OpenType coverage table

Some fonts have duplicate entries in an OpenType coverage table. For example, if I decode the Roboto-Regular.ttf using ttx, I find the following as part of the GDEF table: <MarkGlyphSetsDef> &...
jochen's user avatar
  • 3,768
1 vote
0 answers
26 views

How to render multiple polygons that does XOR operation directly on overlapping regions in godot? [duplicate]

I'm trying to render music notations to godot using SMuFL fonts. To do this polygons are created from the lines and curves described in the OpenType fonts, read from SixLabors Font. The current ...
Qiufeng54321's user avatar
0 votes
1 answer
272 views

Browser font ligature rendering - Ligatures between θ and latin characters not working

I'm working on a WOFF2 font using FontForge. All ligatures render correctly in Chrome, except those defined between θ and latin vowels which always appear as separate characters. The ligatures are ...
Revenantus's user avatar
0 votes
1 answer
203 views

Get specific Glyphs affected by OpenType feature

I am currently trying to create an overview for typefaces, displaying all glyphs and their alternatives. For this I am using opentype.js to extract all necessary information. I've been looking into ...
Lennard Grimm's user avatar
1 vote
1 answer
77 views

Vertical character spacing in Chrome variable

I converted an SVG font to OTF using FontForge. I know the original font has certain errors, but really don't think any of those errors would cause the following issue: When using CSS writing-mode:...
dwn's user avatar
  • 543
2 votes
2 answers
1k views

How to enable Recursive (OpenType) font code ligature in Visual Studio Code?

More specifically How to enable code Discretionary Ligatures "dlig" feature of Recursive font ? Usual fontLigatures settings.json configuration doesn't work. "editor.fontFamily": &...
NullPointerWizard's user avatar
0 votes
0 answers
381 views

Which font tables are required when embedding an OpenType font into a PDF file?

Table 126 of the PDF 1.7 spec explains how to embed fonts into PDF files. For OpenType fonts the spec states "In addition to the 'CFF ' table, the font program must include the 'cmap' table"...
jochen's user avatar
  • 3,768
0 votes
0 answers
216 views

Why can't I change ```font-feature-settings``` directly with javascript?

I want to make a simple web page to test OpenType features. What I want: I simply enter some text and the feature I want to use in inputboxes, and click a button to change the content and style of a ...
Syzygy Yuan's user avatar
0 votes
0 answers
139 views

Get a list of fonts (including opentype fonts) in C# winform

Is it possible to get a list of fonts (including open type fonts) in c# winforms. I don't need to use the font, I just need the list. InstalledFontCollection installedFonts = new ...
Michael's user avatar
  • 8,361
0 votes
2 answers
53 views

Opentype `name` record used for CSS

I am trying to use my font for CSS and encounter a little bit of problem. It seems that putting non-standard values for "Typographic Subfamily" (name ID = 17) will make the font unloadable ...
NKSL2001's user avatar
0 votes
0 answers
54 views

OpenType properties in OOXML

Is there a way to request specific OpenType properties in OOXML (Office Open XML) ? For example I would like some digits to be in lining format and some digits to be in old style format. How can this ...
yannis's user avatar
  • 839
1 vote
0 answers
214 views

MIME command for attaching multiple OTF & TTF Fonts to a video

I have a question about attaching fonts to a video (mkv). Usually, I use a file.bat to do the process of merging subtitles + attaching some specified fonts to my videos. This is the command line: @...
AbuShu's user avatar
  • 11
3 votes
0 answers
469 views

How to use a specific font style from a collection in Skia?

I am loading OpenType/TrueType font collections from memory to use for rendering text with Skia. The fonts in question are NOT active on the system running the application. To do this I'm using (in ...
John Carruthers's user avatar
0 votes
0 answers
405 views

Fonts' OpenType features not working in Composite fonts in InDesign

When using any Hebrew font in InDesign, the diacritics (nikuds) are displayed in their correct location. This location is set within the fonts by using OpenType features such as ccmp (for glyph ...
Michael's user avatar
  • 85
0 votes
1 answer
2k views

Create React App: Failed to decode downloaded font | OTS parsing error

I've added my fonts as such: @font-face { font-family: "NHaasGroteskDSProMedium"; src: url(/fonts/NHaasGroteskDSProM.otf); } @font-face { font-family: "NHaasGroteskDSProBold";...
cyruslk's user avatar
  • 839
0 votes
2 answers
894 views

Converting OpenType / TrueType format to png images using NodeJS

I've been recently facing a problem. I need to generate images from a font file otf/ttf using the following code application: let font = loadFont("Verdana.ttf"); font.Generate("Hello ...
PoNo's user avatar
  • 3
0 votes
1 answer
249 views

OpenTypeFont not displayed on Firefox and Safari

I am trying to use an OpenTypeFont font, AXIS Basic ProN. This font is working well on Chrome: but not on Firefox and Safari: On Firefox, I can observe the following warnings on the console: It ...
Florian Ldt's user avatar
  • 1,145
-1 votes
1 answer
71 views

Adding png meme/icon to existing true type or open type font

I want to add a png icon to an existing font for use in my terminal on macOS. I've looked into using the python fonttools package, but I can't figure out how you would add a png to the font. It sounds ...
Paul Johnson's user avatar
  • 1,329
1 vote
1 answer
35 views

Generate image with PHP using 0 with a slash through it

I'm trying to generate an image with PHP using functions like: imagecreatefrompng, imagettfbbox, imagettftext All good, I'm able to generate the image. One issue that I have is that need the following ...
Nistor Cristian's user avatar
0 votes
1 answer
36 views

How to find the base character in OpenType GPOS lookup format 4.1?

The OpenType documentation states that for GPOS lookups of type 4.1 (Mark-to-Base Attachment Positioning), the application must do the following: To identify the base glyph that combines with a mark, ...
jochen's user avatar
  • 3,768
1 vote
1 answer
715 views

Using specific instance for @font-face in TTF file containing multiple instance

First of all I have no idea how TTF files are organized so I might have some of my terminology wrong here. I have a stylesheet with a @font-face that references a single TTF file that has multiple ...
Jason C's user avatar
  • 39.1k
1 vote
1 answer
157 views

Java: Check if otf font file contains small caps glyphs

Is there a way to check if otf font file contains glyphs for small caps variation? Is there a way to do it in java? Thanks!
ishay89's user avatar
  • 38
1 vote
0 answers
297 views

How to check if a font file is Opentype or Truetype using python? (OS Independent)

How would I detect whether font files are Opentype or Truetype using python? (I am unpacking .otc and .ttc font collection files, and would like to assign the correct extension to each font)
Zopolis4's user avatar
  • 145
1 vote
2 answers
176 views

OpenType - Two Khmer chars become three before mapping to glyph Ids

I have an interesting problem with processing Khmer text. The text "កើ" is a string of length two in Unicode. See snipped below for the char codes. let textbox = document.getElementById('...
Waruyama's user avatar
  • 3,313
0 votes
0 answers
222 views

How to link otf fonts together so they can be used together?

Ok, I'm sorry if this is the wrong place to ask this, but I'm not entirely sure I'm asking the right question here. I'm working on a custom font for a conlang (constructed languages, like Elvish or ...
Merp Derpster's user avatar
0 votes
2 answers
141 views

Can idDelta and idRangeOffset both be non zero in TrueType fonts?

Is it possible that in cmap format 4 of a TrueType font that idDelta and idRangeOffset of a segment are both non-zero? And if so, why? Why would you need to add idDelta if the glyph index taken from ...
Klokat's user avatar
  • 53
0 votes
0 answers
261 views

How to tell if the paths in a font are clockwise or counterclockwise?

I am using opentype.js to convert text to Bézier curves using fonts, and then turning those Bézier curves into Three.js Shapes. However, this is giving me trouble, because ShapePath.toShapes() accepts ...
laptou's user avatar
  • 6,499
0 votes
0 answers
189 views

What's the formula to calculate the height of a given text?

OTF documentation says: USE_TYPO_METRICS If set, it is strongly recommended that applications use OS/2.sTypoAscender - OS/2.sTypoDescender + OS/2.sTypoLineGap as the default line spacing for this ...
nonplusultra's user avatar
0 votes
0 answers
455 views

Canvas renders drawing but it extends outside the canvas

I'm new to using Canvas in javascript. I have Web Speech API detecting words said by the user. The canvas then renders this as points of text outline using opentype.js library. However when the user ...
Laiqa Mohid's user avatar
1 vote
1 answer
882 views

opentype.js and maker.js rendering incorrect path for text

I need to be able to convert text and a specific font to svg path data, and happened to come across opentype.js and maker.js, independent of each other, seeing that maker.js uses opentype.js. When I ...
Shmack's user avatar
  • 2,065
1 vote
2 answers
318 views

Is there a way to find all features available in a font with JavaScript

I'm developing a website with Nuxt and Contentful. I loaded some fonts using FontFace. I need to load them in this way because it's a Type design club website and they need to load their fonts as they ...
giannicash's user avatar
1 vote
1 answer
534 views

Android is cutting off (clipping) Arabic text in EditText and TextView

I have a multiline EditText, for editing Arabic text, as you can see Android cuts off some characters because they are rendered right after zero margin (adding spaces is not a solution because it's ...
AVEbrahimi's user avatar
  • 18.3k
1 vote
1 answer
1k views

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

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 ...
Jack London's user avatar
0 votes
1 answer
155 views

Why does the fill attribute of the SVG path element fill the entire bounding box in some Chrome conditions?

I'm developing a SVG editing application with react. All text in SVG is converted into path elements in opentype.js. At some point, the entire bounding box for some of the path elements is suddenly ...
nico's user avatar
  • 403
1 vote
0 answers
109 views

Java: errors in shaping Mongolian glyphs

Context: Java 11, JavaFx 11 (where applicable), Linux Mint 19.3, Eclipse 2020.06. Java apps run as desktop applications. Background: The Mongolian script is considered "complex" and, to be ...
Maurizio M. Gavioli's user avatar
3 votes
2 answers
385 views

How are encodings and charset tables organized in CFF font file?

The CFF specification Chapter 11 to Chapter 13 gives a rough description of what encodings and charset data are organized in a file. CFF Specification. Here are some questions. Considering the ...
王凯越 Kaiyue Wang's user avatar

1
2 3 4 5