473,399 Members | 4,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

FOP - API font embedding

Hello everyone.

You might wonder what the subject suggests ;) - I would like to write a
fully local (Polish), platform independent and internet accessible
application using 0.20.5 FOP release. There are no Polish fonts in it,
so I need to add them on my own. The FOP homepage gives a clear
explanation on how to do this. So: I need to create font metrics file
(say arial_pl.xml) using arial_pl.ttf file. Next I need to update the
config file userconfig.xml.
Next - in the Java code I just write:

userConfigFile = new File(userConfig);
options = new Options(userConfigFile);

giving relevant values to the userConfig variable and everything's
brilliant. BUT - what if I don't have access to files included in the
userConfig (userconfig.xml) file (e.g. the metrics-files)? If I want to
embed everything in a jar archive I can't access them just-like-that -
I need to get them via getResource() mechanism. There must be several
steps to undertake, which are described in the userConfig file, which
can be done without the configuration files at all, only having the
arial_pl.ttf file, and processing it with FOP API classes.
These would include setting the things described in font-metrics file
and loading the arial_pl.ttf file (I have it accesible as
OutputStream/InputStream/InputSource/whatever).

Can anyone tell me what these steps are?
Thanks,

May 28 '06 #1
0 1191

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Arthur Connor | last post by:
I want to embed some source code lines in an article on a web page. As usual I want to use a fixed sized font for this souce code lines (read: the letters should have all the same width). The...
133
by: Philipp Lenssen | last post by:
Why is there no standardized and well-working way for a web-page to offer the font for download/embed it, in order to be displayed on the page? No matter what you think of the preferred font of a...
4
by: Clive Everett | last post by:
I thought it would be rather fun to try out @font-face, but I cannot get it to work. I used Microsoft WEFT to generate several embedded fonts and find that the example below works when I use my...
6
by: BobAchgill | last post by:
Has anyone had success with writing text using a private font that was not already installed to the system? When I try the example code in NET Framework Developer's Guide called “Creating a...
13
by: al jones | last post by:
I think I need to degrade this to make it work so I'll ask a really basic question. I'm trying to display a set of fonts that are *not* installed but are present on my computer. Is there any...
4
by: Lamy | last post by:
Please help, I need to upload a font file from the website (with admin privilages) and install it on the web server. Is there a way of doing that or an example? Kindest Regards Lamine
6
by: -Lost | last post by:
I would like to include a specific font. Rather than create images with the font where and when I need it, I was hoping I could embed it. I do realize it is optional and is up to the user to...
43
by: Andy Mabbett | last post by:
I'm about to publish (what's the web equivalent of "reprint"?) an old paper article, whose heading is in this font: <http://www.flickr.com/photos/pigsonthewing/2446437162/> Can anyone kindly...
16
by: Laszlo Nagy | last post by:
I need to create multi lingual invoices from reportlab. I think it is possible to use UTF 8 strings but there is a problem with the font. I could not find any free TTF font that can do latin1,...
1
by: neovantage | last post by:
Hey all, I am using a PHP script which creates headings at run time in a sense at page execution. I am stuck a with a very little problem which i am sure i will have the solution from experts. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.