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
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
  • 45,163
  • 57
  • 202
  • 418
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
  • 356
  • 1
  • 18
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
  • 4,717
  • 10
  • 42
  • 77
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
  • 1,161
  • 3
  • 8
  • 23
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
  • 81,358
  • 34
  • 189
  • 227
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
  • 241
  • 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
  • 5,219
  • 5
  • 31
  • 54
1
vote
2 answers

CentOS and fontconfig: Cannot load default config file

I'm getting following error when using imagick: Fontconfig error: Cannot load default config file My script is working but i would like to fix this (is filling up log file). OS is: # cat /etc/redhat-release CentOS release 5.10 (Final) I was…
ntatic
  • 171
  • 1
  • 8
1
vote
2 answers

Can I customise the content of an Excel drop down box to mirror the colour of another variable cell?

I hope someone can help me with this, I am creating an accounts spreadsheet where 'Sheet 1' contains a list of: All activities we will be billing against Activity budget Planned spend Actual spend Budget varience (I.e. money left to spend or will…
1
vote
0 answers

Adding native language android

I need to add native language rendering (not the font.My language,sinhala,use complex scripts) support to android.Is there any chance of using fontconfig compiled for arm to do this?
Madushan
  • 894
  • 1
  • 10
  • 22
1
vote
1 answer

Why is libtool looking for .lib files instead of .a files?

I am in the process of cross-compiling Fontconfig for Windows using Mingw-w64 (the host is Ubuntu 12.04 64-bit). The process consists of the following steps: Compile and install the build dependencies (Freetype and eXpat). Run…
Nathan Osman
  • 71,149
  • 71
  • 256
  • 361
1
vote
4 answers

Is it possible to install Freetype or Fontconfig on Heroku?

I'm trying to make phantom.js work on heroku, so far I've managed to launch a custom buildpack and run the binary file. However, it seems that in order to render things correctly I need to also install Freetype and Fontconfig. Heroku doesn't seem…
Vlad
  • 8,038
  • 14
  • 60
  • 92
1
vote
0 answers

How do I escape a special character in fontconfig?

I am executing Inkscape from the command line to convert SVG to PDF, and I rely on fontconfig to match the font-family of text elements in the SVG to the font files on the (Debian) machine. This works except when the font-family value of the text…
ram1
  • 6,290
  • 8
  • 41
  • 46
0
votes
0 answers

Remote and local xterm use different fonts

I am using WSL on Windows 10 with XMing X server. Everything works locally as desired, but when I launch a xterm from a remote location, it launches with a different font. In my .Xdefaults I have the following lines: `XTerm*faceName:…
0
votes
0 answers

Is there a way to add a font to fontconfig without knowing the font name?

Hi guys I have an application running on a serverless node environment (vercel) and I need to generate an svg using custom (end user defined) fonts, I have the files hosted on an s3 bucket and when I parse the svg I am downloading all the fonts used…