Hi Dante,
This certainly works as I've tested on a linux server where I'd also
installed the MS fonts so let me explain how it works to see if that
offers a clue as to what's going wrong.
OpenBD works as follows when it comes to fonts in CFDOCUMENT.
Firstly it looks to the <server><fonts><dirs> element in the
bluedragon.xml for font paths.
If that doesn't exist then it will check if any of the follow paths
exist. Any that exist will be added to the bluedragon.xml so that the
search isn't performed next time round.
/usr/X/lib/X11/fonts/TrueType
/usr/openwin/lib/X11/fonts/TrueType
/usr/share/fonts/default/TrueType
/usr/X11R6/lib/X11/fonts/
/usr/X11R6/lib/X11/fonts/truetype
/usr/X11R6/lib/X11/fonts/TTF
In those directories it will look for font files with the .otf and .ttf
extension.
If all that seems to be ok on your server, try a variety of the other MS
fonts to see if it's not just Arial that you're having the problem with.
HTH
Andy
Dante wrote:
> Hi
>
> I have a OpenBD 1.1 installed on Tomcat on a Ubuntu 8.04 Server and I
> have a problem with CFDOCUMENT, because I allways get the "Times" font
> on my reports.
>
> I tryed the following methods:
>
> <style type="text/css">
> div,form,p,td,th,body { font-family:arial; font-size:11px; }
> </style>
> <p>Hello</p>
>
> <font face="arial">Hello</font>
>
> <p style="font-family:sans;">Hello</p>
>
> But the results are allways the same.
>
> I installed the Microsoft TTF fonts on the Ubuntu Server, and many
> other fonts packages, with no luck.
>
> I don't know if the problem is related to the CFDOCUMENT OpenBD
> implementation or if the problem is related to the Ubuntu Server
> (because it do not have a X11 installed by default)
>
> Thank you for your help!
>
> Dante
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
http://groups.google.com/group/openbd?hl=en
official site @ http://www.openbluedragon.org/
!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---