473,597 Members | 2,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

True Type fonts(ttf) on FreeBSD

123 New Member
Hi all,

I wanted to install TT fonts that works with PHP. I come across with X11. But, I don't wanted to use X11. Instead, wanted to have some easy way to do so...I found one port called Freetype2 under port print ( As I wanted to have print fonts and not screen). I have installed the port freetype2 . Now what else I need to do to make it work ... any idea ?????


-Ajd335
Jun 4 '09 #1
3 4539
Nepomuk
3,112 Recognized Expert Specialist
I am sorry, but I have no idea, what you are asking. It's something about fonts, ok.

X11 will do part of the work displaying them, if you want it to. Seemingly you don't. But that shouldn't change the type of font you need.

I'm not quite sure, what the problem about PHP should be - unless you don't mean the scripting language. If the font is installed, it should be possible to use it locally, I would guess. I don't really know PHP though, so there might be some hidden problems I just don't see.

If you do mean the PHP I think, a simple <font face="Font Name">...</font> should probably do the trick, if your program creates HTML code (as I guess it does).

Then there's something about printing - that shouldn't be a problem, as long as the program you use for printing can use the font.

You say, you installed freetype2. So, basically it should work.

If I completely misinterpreted your question, please correct me. In that case, please try explaining again, what exactly you are trying to do.

Greetings,
Nepomuk
Jun 5 '09 #2
drhowarddrfine
7,435 Recognized Expert Expert
FreeType2 Homepage .
Jun 8 '09 #3
ajd335
123 New Member
Thanks for your replies for giving me direction.
I will look upon it . If need further help, will post it here..!

Thanks a lot...
Jun 8 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2893
by: SYR | last post by:
I try to acces to the font name of my ttf fonts using a php script with the file name. I've found a script reading idv tags from mp3 files, but it's too specific. Can anyone say me how to read a ttf file in php ? Thanks, and sorry for my english. beb - BWT
1
9140
by: bof | last post by:
I'm attempting to use ImageTTFText to render text to an image, I can get it to work if I a) specify the full font path b) switch off anti-aliasing c) specify an OpenType font (e.g. arial.ttf) If I specify a TrueType font (e.g. futura.ttf) I get an error message "Warning: imagettftext(): Could not find/open font in c:\filepath"
1
3683
by: azathoth | last post by:
I'm writing text on a GIF with a custom TTF font on my dev server (Apache/PHP4 with bundled GD). It works nice. On the production serveur (Mandrake: Apache2/PHP5) error happens : Call to undefined function imagettfbbox() Is there a special trick or release to be abble to use GIF r/w support and True Type Font support too ? Thanks for any hints, i cant find a way out without rewriting all the code right now :(
1
3525
by: Jamie Davison | last post by:
I'm have GD 2.0.1 - php 4.3.5 compiled --with-gd--enable-gd-native-ttf--enable-gd-jis-conv --with-freetype-dir=/usr/local' '--with-t1lib=/usr/local --with-jpeg-dir=/usr/local--with-png-dir=/usr/local' --with-xpm-dir=/usr/X11R6' running under FreeBSD 4.8.
0
1929
by: ljb | last post by:
Using PHP-4.3.11 with GD extension, bundled GD library, and freetype-2.1.9 (with X.org 6.8.1). I can't get the TrueType Font (TTF) bounding box to come out right. Whether using imagettftext() or imagettfbbox(), for some angles of text (like 45 degrees), the box comes back in the wrong place. Sample code below; just change the $font assignment to point to a TTF font file. You should see a text string with a box around it, but my box isn't...
0
1848
by: enerion | last post by:
Dear all! I'm using Stylesheet designer with FOP to generate pdf from xml. My problem is: I've installed new font - two files: - arial.ttf.xml - ARIAL.ttf I've made entry in user config:
1
3248
by: Atul | last post by:
Hi, I have installed a truetype font (.ttf) on a linux machne (SUSE linux 10, KDE) by copying it to my .fonts folder. I can use the font in all applications like open-office and firefox browser. However, I cannot use the font in a python app that I am writing. The list returned by Tkfont.families does not contain this particular font. Any suggestions ?
8
6536
by: traditore | last post by:
Hello. I'm trying to load fonts in a web page using "style" tag. The TTF files are in other page whose URL is, for example, "http://myURL/fonts". The HTML code is something like: <html> <head> <style> @font-face {
5
3137
by: Christian Stapfer | last post by:
After switching from Python 2.3 to 2.4 (Enought), PIL throws an exception that did not occur formerly (under Python 2.3) when executing ImageFont.truetype(font, size) where font = "C:/Windows/Fonts/comic.TTF". Here is the traceback that results:
0
7969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8381
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8035
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8258
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5847
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5431
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3927
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2404
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1494
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.