Is freetype2 loaded?

Posted on 2004-09-24
Last Modified: 2013-12-25
I have a CGI application that can use freetype2 if it is loaded, in my installation program I am trying to automatically determine if freetype2 is loaded (instead of just asking the installer) does anyone know how to query the system to see if freetype2 is installed (without loading the library which can cause the program to fail)?
Question by:healthstatus
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
LVL 48

Assisted Solution

hernst42 earned 250 total points
ID: 12152490
You can check if the lib is found in the directories listed in the envirnoment variable LD_LIBRARY_PATH and the pathes listed in /etc/ . If that files is found the lib should be available.

Expert Comment

ID: 12191896

In Linux:
rpm -q freetype

Author Comment

ID: 12193692
Will the LD_LIBRARY_PATH be set on a Windows box, or just the *nixes?
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

LVL 48

Expert Comment

ID: 12193853
That variable will only be available on *nixes. So you are using it on windows??

Author Comment

ID: 12193962
Cross platform, Sun, *nix and Windows.  

Accepted Solution

ITcrow earned 250 total points
ID: 12195929
LD_LIBRARY_PATH is only good for Solaris and Linux

And you cannot rely on the result or existence of this variable as it is not a required variable setting.

Your best bet will be to look at the default location ( directory where fonts are installed )  on your targetted platforms and then check.
-  Find OS
- Get the predefined location for freetype2 fonts on this platform.
- Check if font directory exists.
- Double check by checking the existence of default font files.
- You can be creative and even check if the font file is okay, by comparing it's size or by
   writing something using that font in temp directory and comparing the size of resulting file.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How can i open a .fxp file 3 65
Using a hta file with MSSQL agent to schedule a script job 4 64
SSRS - Powershell 7 73
powershell automatic variable for results 21 39
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question