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

96 questions
2
votes
0 answers

What's the equivalent of xfontsel for fontconfig fonts?

I'm trying to draw a particular font in a particular style, using Xft and fontconfig. I know it's possible, because font-manager will let me preview it. (Terminus, in italics, FWIW.) However, I cannot seem to figure out the right font name to pass…
David Given
  • 13,277
  • 9
  • 76
  • 123
2
votes
0 answers

Retrieving font path with wxFont and fontconfig

My name is Fabio and I'm really glad to meet your community! I faced a problem working fonts with wxPython, PIL and fontconfig. In the beginning I wanted to use PIL to write a text in a tiff image, and I used ImageFont.truetype to load the font in a…
2
votes
0 answers

Cannot load default config file phantomjs

I installed phantomjs using ap-get on ubuntu, when I try to get the version of phantomjs phantomjs --version I get this error and warning: Fontconfig error: Cannot load default config file [WARNING] phantomjs: cannot connect to X server I tried…
Hocine Ben
  • 2,079
  • 2
  • 14
  • 20
2
votes
1 answer

Linux centos fontconfig help need

I'm trying to get wkhtmltopdf working and i received the following error when using certain fonts with @font_face. /usr/bin/wkhtmltopdf: symbol lookup error: /usr/bin/wkhtmltopdf: undefined symbol: FcFreeTypeQueryFace So I looked it up and saw I…
Clint C.
  • 678
  • 13
  • 31
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,132
  • 9
  • 22
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
  • 647
  • 1
  • 10
  • 21
1
vote
1 answer

Unable to build/compile `yeslogic-fontconfig-sys vX.X.X` with Rust on Ubuntu system

I'm failing to build/compile anything the 'yeslogic-fontconfig-sys'-crate is involved (using Ubuntu with Rust). This happens i.e. by using crates like 'plotters' or 'cargo install inlyne': For example building an project with the dependency…
Michael
  • 63
  • 4
1
vote
1 answer

Linux gcc fontconfig list a selectiion of fonts

I want to extract a list of fonts by fontconfig matching a font specication. I have experimented with the test code below. It can pick a single "best match", but when I instead try to list the alternatives it comes up blank. If I supply a blank…
Marta
  • 21
  • 3
1
vote
1 answer

Weasyprint Fontconfig error when importing into python

When I import weasyprint I get the following error: Fontconfig error: Cannot load default config file: No such file: (null) Is there a way to suppress this error, because the program runs fine otherwise. Better yet, how do I correct it?
prime90
  • 889
  • 2
  • 14
  • 26
1
vote
0 answers

Weasyprint gives Fontconfig error when used with Django

I'm trying to make an application that downloads a pdf report with data from a form. The form is done by Django, the pdf is by WeasyPrint. But they don't seem to work together. This works fine as code outside of Django: from `weasyprint` import…
Nyfregja
  • 11
  • 2
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
  • 6
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
  • 547
  • 4
  • 11
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
  • 11,836
  • 25
  • 112
  • 175
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"