Questions tagged [truetype]
TrueType fonts are the major scalable font format designed by Apple. The TTF rendering engine can be found on many platforms including Apple's OSX, Microsoft's Windows, Linux, and inside of printers.
962
questions
1
vote
0
answers
21
views
Replace generic CSS font family with custom font
I want to replace the default font family helvetica in my Chrome-Browser derivate, as it's rendered in an unreadable fashion.
My replacement font-family of choice would be "Helvetica Neue, for ...
-1
votes
0
answers
45
views
Can someone explain these macros for reading data from a file?
I am reading a tutorial about reading & rendering TrueType font files and have come across these macros:
typedef unsigned char u8;
typedef char i8;
typedef unsigned short u16;
typedef short i16;
...
-1
votes
0
answers
71
views
OpenGL TTF font renders upside down or top-aligned using stb_truetype
I'm using the stb_truetype library with OpenGL to render TTF fonts. I'm using the stbtt_GetBakedQuad to find the x,y and u,v tex coords.
However, no matter how I flip the v coordinate, the text either ...
0
votes
0
answers
22
views
How can I use and extract kerning values from TrueType fonts to correctly show glyphs using C++ library?
I need to extract Kerning values of TrueType Fonts using C++ library
0
votes
1
answer
30
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 ...
0
votes
0
answers
21
views
Uninstall TrueType Fonts from Linux Mint
I am trying to uninstall/purge ms truetype fonts from my system, but nothing is working. Any body have a solution? I tried this article, but with no luck: https://askubuntu.com/questions/57735/how-to-...
0
votes
0
answers
16
views
Get Unimplemented_Feature error when use freetype 2.11.1 to load glyph with AppleColorEmoji-160px.ttc
if (hasColor && character.getEmoji()) {
flags = FT_LOAD_COLOR | FT_LOAD_DEFAULT | FT_LOAD_TARGET_LCD;
}
if (FT_Error error = FT_Load_Glyph(face, glyphIndex, flags)) {
SXWARN("...
0
votes
0
answers
52
views
Create a font (.ttf) from a serie of vectorial images (.eps)
I am working in a project to learn Kanji (equivalent of our latin letters for Chinese/Japanese except that there are more than 2000 of them) and we developed a new font for each character.
For the ...
0
votes
2
answers
34
views
How to Properly Position Diacritical Marks above and below All Ligatures of an Arabic Font in Chrome and Edge Browsers under Windows and Android OS?
Can you help me with a way to go around this issue?
There is an Arabic font rendering issue, which, at first, I thought was a problem in the font I am currently designing. However, I now believe it ...
0
votes
0
answers
41
views
How do you interpret ttf file to draw text?
I am implementing a 2D game engine and am implementing text rendering next. I read that .ttf files need bezier curves to be able to be rendered properly, so I implemented a quadratic and a cubic ...
0
votes
0
answers
37
views
How debug unexpected error while everything seems right?
{r setup,include=FALSE}
Give this Error:
Error: unexpected symbol in " {r setup"
why?
0
votes
0
answers
75
views
How can I embed a TTF font in a docx/WordprocessingMl file that will render with pdfoffice:2.0.2
I have a docx file I created programmatically, in which I embedded a font, using the font table part, and the w:embedRegular element. The font is an OTF font. Word renders this file on computers ...
-1
votes
1
answer
149
views
Imagefont truetype cannot open resource
Cannot open . ttf file from media folder
But it's work Localserver
But now the project hosting to pythonanywhere
class SmartRCBack(models.Model):
reg_number = models.CharField(max_length=10,...
0
votes
0
answers
126
views
RuntimeError: TTF Font file not found: NotoSansTC-Regular.otf in FPDF
I am following the answer provided by Erik Kalkoken in this question UnicodeEncodeError: 'latin-1' codec can't encode character '\u2013' (writing to PDF). I have already installed NotoSansTC-Regular....
1
vote
0
answers
165
views
Flutter - how get default system font?
I using custom font for my Flutter app:
return MaterialApp (
theme: ThemeData(
fontFamily: "MyFont"
)
)
but in one place of application I need to use "system ...
0
votes
0
answers
133
views
fontTools: How to convert GlyphCoordinates object into a list of linear and quadratic bezier curves (truetype font)?
I am using Python fontTools in order to read data from a true type font file ("Roboto-Black.ttf"). I read online that truetype fonts use quadratic bezier curves for their outlines (https://...
0
votes
1
answer
57
views
Measuring GDI text with GetCharABCWidths, Non-TrueType font?
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-getcharabcwidthsw
In the docs it states:
The GetCharABCWidths function retrieves the widths, in logical units, of consecutive ...
0
votes
0
answers
46
views
Problem with adding fonts in python script
e, Hi does anyone know, I don't understand how to add my own font for text into some python script for image procesing? I found in code fontlist.txt -> a file that is used as text source. So there ...
0
votes
0
answers
151
views
Copying/pasting pdf text gives garbled text after changing the registered font of react-pdf
I was generating pdf files using react-pdf/renderer. It was using ‘ACaslon Pro’ as the registered font.
Now, I changed the font to Georgia Pro. The generated pdf looks perfect. But when copying/...
0
votes
1
answer
144
views
How to split a font file to multiple parts?
How to split a font file to multiple parts automatically?
Why do I need this? Because as up to Chrome 99, it limits maximum uncompressed file size of a font to 30 MB. See
https://chromium.googlesource....
0
votes
0
answers
46
views
htmlTTF File from Google FOnts doesnt work how can i fix this?
I don't know what's the problem, is it the quotation or is it something else? My code is below I use Bootstrap Heading tag and the id is "title", please help me out, thank you in advance
...
0
votes
0
answers
27
views
Why does conextual positining not work well on chrome/HTML?
I am having trouble with the following lookups.
When I use them on Chrome, using a font loaded in an HTML, they do not work, and show this:
But they do work perfectly on VOLT proofing tool:
If I ...
0
votes
1
answer
249
views
Flutter using woff2 as custom font
I have flutter mobile app that use a lot of font files (more that 100 MB) ..
I am using this function to load the custom font:
https://api.flutter.dev/flutter/dart-ui/loadFontFromList.html
I am trying ...
0
votes
0
answers
22
views
What are the pros and cons of using UILabels for the icons in the app instead of UIImages?
Basically I am trying to use a ttf file to render images for my icons in the app.
I know few pros of this approach like:
Its lightweight (app size reduction)
overlaying colors is easier
dynamic ...
0
votes
0
answers
318
views
How can I modify (add or delete some svg icons) on a .woff or .ttf file?
I'm working on an app that I haven't coded. This app is using customs icons from an .woff file (or .ttf). I have never used this type of file before. I reach to open it with https://fontdrop.info/ and ...
0
votes
1
answer
120
views
How I can use the differents font size of a *.ttf file?
I downloaded differents *.ttf font files.
In these files there is a lot of available sizes.
However, i see no font-size attributes in the @font-face declaration in css files.
There is style (normal, ...
0
votes
1
answer
113
views
Why is my SVG file not using my font file?
I have this SVG file in the same directory as this font's TTF file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
&...
0
votes
1
answer
259
views
@font-face src: local() doesn't work on Android
(Sorry I didn't find it before I figured out Chrome-Android also doesn't work. The Chrome-Android used a fallback-to-sys-default-font-trick and it did trick me)
I was going to use unicode-range but ...
0
votes
0
answers
129
views
Embed ttf font within PDF when cmap table is missing
Problem
I'm building up a PDF from scratch using TCPDF. However, when I try and embed a ttf font that does not have a cmap table defined within it, TCPDF throws an error. I've also tried using other ...
1
vote
1
answer
403
views
How can I get the font family name from a .ttf file in golang?
As we know, a .ttf(or otf) font file's file name is not always the same with the font family name, for example, if I rename Arial.ttf to abcd.ttf, it's font family name is still Arial, so is there a ...
0
votes
0
answers
29
views
I need to add font file to my node js project how can i do it? my node js project is docker image. Is this possible to do?
I have a nodejs project to genarate qr codes as images and pdf. this project i'm created as a docker image. how to add font file to the project? is this possible to add ttf font file to node js ...
2
votes
0
answers
122
views
Import ttf font in .ejs files
I'm having a nestjs project and want to generate server side pdf using notice.ejs template. And I have a ttf font Debrosee-ALPnL and want to apply this font to all the <h2> element inside the ...
1
vote
1
answer
233
views
Are there some default fonts (ttf) in python Pillow?
In the documentation of Pillow (PIL Fork). One font type is mentioned in ImageDraw module tutorial that is "FreeMono", for example fnt = ImageFont.truetype("Pillow/Tests/fonts/FreeMono....
0
votes
0
answers
89
views
python PIL Custom True type font not working (TTF)
I am trying to make some cards for a game using the one piece font found here :
https://fontmeme.com/fonts/one-piece-manga-font/
I am running something really similar to this sample code :
from PIL ...
0
votes
1
answer
75
views
Word font family variations
An introduction. My teacher from university is kind of weird. She wants all essays handwritten by students and this is is a bit exaggerated given the fact the we live in computers era. I created a ...
0
votes
2
answers
179
views
Is there a way to enumerate the individual CHARACTERS in a True Type Font file(TTF)?
I'm trying to figure out how to enumerate ALL of the characters in a True Type Font.
I have a TTF font - "Pangolin" which is comprised of the COMPONENTS of Japanese Kanji, NOT the Kanji ...
1
vote
1
answer
175
views
How to render a TTF-Glyf to a image with FontTools
I want to render a glyf of a TT-Font into an image (numpy.array):
from fontTools.ttLib import TTFont
import matplotlib.pyplot as plt
font = TTFont('font.ttf')
glyf = font['glyf']['A']
coords = np....
0
votes
1
answer
42
views
Where can I find lists of the most common characters for the simplified Chinese, Japanese and Korean languages?
I am developing a simple mobile puzzle game and I am currently working on the localization aspect of it. I want to localize it in Simplified Chinese, Japanese and Korean. I am planning to use the noto-...
0
votes
0
answers
335
views
custom fonts are not working in ReactJS app
I added the .otf files to the project then imported them in index.js
import "./assets/fonts/Averta-Bold.otf";
import "./assets/fonts/Averta-Light.otf";
import "./assets/fonts/...
1
vote
1
answer
36
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:...
0
votes
0
answers
18
views
TrueTypeFonts - decomposeOutline function not working with calculateContours map object output
I have been working with the ttfquery library with Python. Currently, I am trying to map/find the points that form the contour of the Times New Roman font, however, I have had trouble due to map to ...
0
votes
0
answers
32
views
Can I change the font name?
I opened my NanumGothic.ttf and modified some letters. And I want to save this NanumGothic.ttf as a new name.ttf. But this yellow part doesn't change. Can I change it using python?
(I'm using ...
0
votes
0
answers
35
views
Font won't render on WordPress webste
I am trying to add in a custom font for a WordPress site into Visual Code Studio.
This is my code-
@font-face {
font-family: 'tt0841m';
src: url('fonts/tt0841m.ttf') format('truetype');
font-style: ...
0
votes
1
answer
428
views
How to use TTF font with PDFBox AcroForm and then flatten document?
I have been trying to make a fillable PDF file with LibreOffice Writer 7.2.2.2. Here is how the document looks like:
All fields right of the vertical lines are form textboxes, each one having its own ...
2
votes
1
answer
367
views
Opencv true type font reversing and splitting arabic characters
Arabic letters are written cursively and read from right to left. I'm trying to render the word مستقبل which means future and reads from right to left (begins with م and ends with ل) using opencv's ...
0
votes
2
answers
111
views
Oracle Reports Builder Barcode fonts disappearing
I have an issue with Oracle Reports builder. I am converting the RDF to XML and a few certain fonts, such as Barcode fonts disappear.
They are written in the XML though.
The images below show the ...
1
vote
0
answers
63
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:
@...
0
votes
1
answer
434
views
Flutter custom icon generator - stroke width not being applied to custom icons font
When using https://www.fluttericon.com/, how can I make the icons thicker?
I found that they need a stroke-width so I added that to the generated config.json:
"svg": {
&...
0
votes
0
answers
57
views
loading a ttf file in python
I created a Card class in Jupyter Notebook that creates a playing card. I use a .ttf file in the Card class to create the card image. The .ttf file in the folder with my Jupyter Notebook. ...
0
votes
0
answers
204
views
how to convert bitmap font (.Fon) to TrueType font (.ttf)?
I have two bitmap fonts (.Fon) which are the default Fonts for Windows 3.1 and Windows 95 in English with Arabic support and i want to use them in my new vb.net program but i have a problem with the ...