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
4
votes
0 answers

Loading font to Pango

I am trying to load a non system font to my GTK application. I have tried using pango to achieve that. Here's my code: string fontPath = "res/fonts/FreeSans.ttf"; const FcChar8 *fontFile = (const FcChar8*) fontPath.c_str(); FcBool fontAddStatus =…
Ramywhite
  • 92
  • 2
  • 7
4
votes
1 answer

Unable to configure font in XTerm

After a lot of mucking around Xterm, poring through reams of webpages I have thrown in the towel and realized that this isn't something I can figure out on my own. TrueType vs Bitmap Is the option xterm*font used to specify only bitmap fonts and is…
kshenoy
  • 1,726
  • 17
  • 31
4
votes
1 answer

fontconfig finds no fonts

I'm trying to make my C++ program detect installed fonts on my Win32 machine. I tried fontconfig by taking the library from the GTK+ bundle. I use the following test code: #include FcBool success = FcInit (); if ( !success ) { …
cbaakman
  • 61
  • 3
3
votes
3 answers

How to fix Fontconfig warning - unknown elements error

When I run "emacs Makefile" on a file I have made, the file opens, but I get the following in the terminal: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so: undefined symbol: g_date_time_format_iso8601 Failed to load module:…
dilan_s
  • 129
  • 1
  • 10
3
votes
1 answer

How can I generate a PDF with custom fonts using AWS Lambda?

I have an AWS Lambda function that generates PDFs using the html-pdf library with custom fonts. At first, I imported my fonts externally from Google Fonts, but then the PDF's size has enlarged by ten times. So I tried to import my fonts locally…
Eliya Cohen
  • 10,716
  • 13
  • 59
  • 116
3
votes
1 answer

Point libfontconfig.so to a newer version of it

I am trying to convert a webpage with @font-face custom fonts to a pdf using wkhtmltopdf. The software gives me the following error when trying to do that conversion (when not using @font-face it works perfectly): wkhtmltopdf-i386: undefined…
Kay Lucas
  • 589
  • 1
  • 3
  • 17
3
votes
1 answer

why does set-default-font affect find-file-other-window?

I recently added the line (set-default-font "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1") to my .emacs file. After that find-file-other-window always opens a new window instead of utilizing existing windows. Why would that…
jdizzle
  • 4,078
  • 1
  • 30
  • 38
3
votes
1 answer

Brew install failing on OS X - possibly something to do with new XCode

I'm trying to do a brew install of fontconfig on OS X 10.8.3 and I'm being thrown with a nasty error. I have XCode 4.6.1 installed. $ brew install fontconfig ==> Installing fontconfig dependency: pkg-config ==> Downloading…
RemoteCTO
  • 818
  • 8
  • 21
3
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
  • 181
  • 2
  • 12
2
votes
1 answer

How to install font on linux

I am using windows os, So there is no issue with Font(java.awt) class object creation. but my testing environment is on linux. So on that I am getting NULL POINTER exception. Cannot load from short array because "sun.awt.FontConfiguration.head" is…
Anup
  • 55
  • 1
  • 6
2
votes
1 answer

Phantom JS bad kerning custom fonts on lambda

I am running html-pdf to generate a PDF via nodejs using phantomJS and running it on aws lambda. I have custom fonts, and referencing them with path in css (src: url('path/fonts.ttf'); was causing the pdf to render as one large image and the…
Kate
  • 79
  • 1
  • 9
2
votes
2 answers

Could not find or load the Qt platform plugin "xcb" on Archlinux (Write! AppImage)

Trying to install the Write! AppImage on Arch Linux with qt5 installed, freetype2 2.9.1 and fontconfig 2:2.13.1+12+g5f5ec56-1 [levi@astize Write!]$ ./write This application failed to start because it could not find or load the Qt platform plugin…
astize
  • 21
  • 1
  • 2
2
votes
0 answers

Force fontconfig use specific font for given glyphs

Is it possible? I use i3bar status line and want it to display some unicode glyphs, but some of them cause the whole text be vertically misaligned and thus cropped: In this particular example the speaker glyph causes this. How do I force fontconfig…
c_spk
  • 169
  • 16
2
votes
2 answers

Bash. Passing a variable containing spaces

I am using dmenu list selection tool on linux. Let's assume my typical invocation goes like that: ls | dmenu $DMENU_OPTIONS Settings from .dmenurc: DMENU_FN="Liberation:size=16" DMENU_OPTIONS="<...> -fn $DMENU_FN" Then, I have use some…
2
votes
0 answers

Liberation fonts matching for wkhtmltopdf in a docker container for centos 7

I am trying run a docker container with wkthmltopdf 0.12.4 in centos 7. We only want to support "Arial", "Times New Roman" and "Courier New" and do want to deal with msttcorefonts package. So the liberation fonts packages is close enough. However,…
AirWick219
  • 894
  • 8
  • 27