Questions tagged [fontconfig]

Fontconfig is a library for configuring and customizing font access.

Fontconfig is a library for configuring and customizing font access.

cf. http://freedesktop.org/software/fontconfig/front.html

81 questions
2
votes
1 answer

Font Conversion From TrueType to Postscript Type 1

I have a TrueType Font and I want to merge it with a Postscript Font File. When I am merging using fontforge I am getting an error: TrueType font file is 2 byte Encoded and Postscript is 1 byte I want to know whether there is any method by which…
Abhishek
  • 159
  • 1
  • 11
2
votes
0 answers

JRE/fontconfig default exclusion ranges. Unable to display certain Unicode characters

I tried to display the Unicode character \u1e41 (m with a dot) in a JLabel, the result was a little square indicating that the character can't be displayed. In other default windows apps (notepad etc.), this is possible. I found that the character…
Peter Clause
  • 1,112
  • 8
  • 21
1
vote
1 answer

qt qml chinese/russian fonts not working

Im working on a QT/QML (4.7.4) application for a device which is running X11. Running on a linux desktop the chinese and russian fonts work fine, but when On the device it does not. From all the researching and investigation Ive done Im not sure…
Tim
  • 597
  • 1
  • 7
  • 19
1
vote
0 answers

Puppeteer doesn't reuse cached fonts in Ubuntu

During PDF generation with Puppeteer new files appear in cache directory on Ubuntu 16.04 docker image (/var/cache/fontconfig) for each PDF (even the same one). Force fc-cache -r doesn't clean cached files in such situation Is there a way to reuse…
dmitaras
  • 11
  • 1
1
vote
1 answer

pdf2htmlEX converts text but not visible (program can't find font file on linux?)

I'm using pdf2htmlEX to convert a pdf to html, and the output displays correctly when it's generated locally on a mac, but not when it's generated in production on amazon linux. Multiple pages have this issue, but I'll use page 22 of this pdf as a…
JustCodin
  • 69
  • 5
1
vote
0 answers

fontspec (xetex/luatex) and fontconfig

LuaTeX and XeTeX are passing on a warning on from the fontspec package, and I'm not sure whether I should worry. The following minimal code will generate the…
Mike Maxwell
  • 385
  • 2
  • 7
1
vote
0 answers

Building fontconfig with freetype in non standard user home directories fails to find the freetype dependency

I successfully built freetype with the following steps: Download the file freetype-2.7.1.tar.gz from http://www.freetype.org/download.html#stable The 2.7.1 version is a version that can be built into the GD library. The 2.8 and 2.8.1 version…
Stephane
  • 8,110
  • 16
  • 85
  • 135
1
vote
1 answer

Monospace 10px in ubuntu 16.10 has invalid size

Problem in screenshot Why? How fix it? 10px in 16.10 too small ("p" - 10px), but 11px is too big ("p" - 12px) In 14.04 normal font size ("p" - 11px) DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
1
vote
1 answer

Where does Homebrew install fontconfig's fonts.conf?

I'm getting an error (when I run Python) that there are some obsolete entries in my Homebrew-installed fontconfig's fonts.conf, but don't know where to look for it. (I've checked the expected locations, but can't find it there.) Where does Homebrew…
orome
  • 35,904
  • 38
  • 156
  • 345
1
vote
0 answers

FontConfig get fonts to render a given string

I'm trying to implement a C/C++ program that given a string and a font configuration return the best font set to render the string. The string might need more the one font to be rendered correctly. How FontConfig handle this situation? Is it smart…
Simone Rondelli
  • 318
  • 1
  • 11
1
vote
2 answers

Check whether a font is monospaced

I am creating a small (bash) script in Linux to convert monospaced fonts, and I want to return an error when a supplied font is not monospaced. I have been looking at the fontconfig fc-query command, which has the spacing property, but a lot of…
tversteeg
  • 3,579
  • 6
  • 36
  • 71
1
vote
0 answers

Is it possible to get the minimum ascent of all characters in font via fontconfig or pango?

I can see in pango that we can query the maximum ascent (i.e. vertical distance from the horizontal baseline to the highest ‘character’ coordinate). But I also need the minimum ascent. Is this possible via pango/fontconfig or some other library?…
patchwork
  • 971
  • 3
  • 7
  • 21
1
vote
1 answer

What's the point of FcFini in the fontconfig library?

The fontconfig library has a function FcFini. The docs just say FcFini [...] Frees all data structures allocated by previous calls to fontconfig functions. Fontconfig returns to an uninitialized state, requiring a new call to one of the FcInit…
sleske
  • 73,934
  • 32
  • 166
  • 212
1
vote
0 answers

Error when installing fontconfig-2.11.1 on linux

I tried to install the fontconfig-2.11.1 on red hat according to this material , but have following errors while make install: /usr/share/fonts: caching, new cache contents: 0 fonts, 1 dirs /usr/share/fonts: failed to write…
user3567601
  • 231
  • 1
  • 2
  • 4
1
vote
2 answers

Use/Install libraries on server, without sudo

I have an account with bluehost that gives me ssh access, but no sudo, so I cannot use yum (it’s a CentOS server). I want to run a script that depends on phantomjs, but it fails, apparently because I do not have access to freetype and fontconfig.…
user137369
  • 4,260
  • 5
  • 25
  • 49