1
Muslimin
How to include a new font?
  • 2005/9/19 11:37

  • Muslimin

  • Just popping in

  • Posts: 11

  • Since: 2005/9/19


Hi all!

How to include a new font/font family so that we can choose the suitable font from the drop-down menu?


I edited the xoops.php adding new fonts to the font array
which you will find enlisting Arial/Courier/....


The problem is when accessing the page which uses the new font, it is replaced by:
????????????????????

So somehow these fonts must be uploaded to what directory?

God bless y'all.

2
davidthomas1
Re: How to include a new font?

It looks like an encoding problem.

Maybe the font is been displayed but it's not rendered correctly.

Have you tried tweaking the encoding in your browsers menu View>Encoding ?

If that helps, set the encoding in your language file xoops/your_language/global.php charset=...

hope it helps,

D
みんなちがってみんないい。

XOOPS 2.0.13.2

3
teibaz
Re: How to include a new font?
  • 2005/9/19 12:12

  • teibaz

  • Not too shy to talk

  • Posts: 103

  • Since: 2004/6/13


class\xoopsform\formdhtmltextarea.php

line: 100

fontarray = "";

write in this array all fonts you need

4
Muslimin
Re: How to include a new font?
  • 2005/9/20 13:37

  • Muslimin

  • Just popping in

  • Posts: 11

  • Since: 2005/9/19


File to add/edit: /class/xoopsform/formdhtmltextarea.php


$fontarray = array("Arial", "Courier", "Georgia", "Helvetica", "Impact", "Verdana");


I add these Arabic Unicode font familys:

$fontarray = array("A_Nefel_Adeti", "A_Nefel_Adeti_Qelew", "Trad_Arabic", "Arial", "Courier", "Georgia", "Helvetica", "Impact", "Verdana");



****BTW what is DHTML?


I added the new font familys in the fontarray in xoops.php. But it did not work so I figured I have to UPLOAD the fonts to specific folder. Because these fonts are not provided by default in PCs.

Now you suggested I add the array into the formdhtmltextarea.php.

Hope that this works!


5
davidthomas1
Re: How to include a new font?

I found, working with Japanese fonts, that I had to save the PHP file itself in the same encoding as the page being displayed.

I use UTF-8 because it seems to support all character sets (including arabic?)

I converted many of my files to UTF-8 encoding and all the '???????????' marks went away.

Hopefully it's easier in your case and you can just add the fonts to the array as suggested.

all the best,

David.
みんなちがってみんないい。

XOOPS 2.0.13.2

Login

Who's Online

197 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 197


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits