[RFC] Add "Tahoma" font

Note: We are moving the topics of this forum and it will be deleted at some point

Publish your own request for comments/change or patches for the next version of phpBB. Discuss the contributions and proposals of others. Upcoming releases are 3.2/Rhea and 3.3.
TheIlluminative
Registered User
Posts: 3
Joined: Sat Sep 13, 2003 11:54 pm
Location: <div>Here</div>
Contact:

Re: [RFC] Add "Tahoma" font

Post by TheIlluminative »

For it does only affect right to left languages (Arabic, Persian), would it make better sense to put it in bidi.css, so that only boards that use it use the Tahoma font?

Arman_Ajn
Registered User
Posts: 12
Joined: Fri May 21, 2010 6:43 pm
Contact:

Re: [RFC] Add "Tahoma" font

Post by Arman_Ajn »

isn't it possible to automatically change the primary font to "tahoma" for users who have chosen "farsi" or "arabic" for their board language ?

i.e. adding some if clauses in stylesheet files or maybe using jQuery ?!

User avatar
Meis2M
Registered User
Posts: 448
Joined: Fri Apr 23, 2010 10:18 am
Contact:

Re: [RFC] Add "Tahoma" font

Post by Meis2M »

Arman_Ajn wrote:isn't it possible to automatically change the primary font to "tahoma" for users who have chosen "farsi" or "arabic" for their board language ?

i.e. adding some if clauses in stylesheet files or maybe using jQuery ?!
+1
there are many many users use Persian or Arabic phpBB and we ( persian dev ) must edit all .css files every time a phpbb pack arrive. and unfortunately we cant use Customisation Database Styles in phpBB As long as persian dev team add "Tahoma" font manual to all .css files.

User avatar
EXreaction
Registered User
Posts: 1555
Joined: Sat Sep 10, 2005 2:15 am

Re: [RFC] Add "Tahoma" font

Post by EXreaction »

Actually, looking back now, the way the stylesheets are served has been changed in 3.1. Previously they were parsed, then served, but they are not parsed anymore, so that makes this a little more difficult.

If you just want to use Tahoma in your style, all you have to do is add this:

Code: Select all

* {
	font-family: Tahoma, Arial, Helvetica, sans-serif !important;
}
It's not the cleanest method, but it will work.

User avatar
nickvergessen
Former Team Member
Posts: 733
Joined: Sun Oct 07, 2007 11:54 am
Location: Stuttgart, Germany
Contact:

Re: [RFC] Add "Tahoma" font

Post by nickvergessen »

EXreaction in 3.1 it's even easier.

Each language will have it's own css file for the buttons anyway: styles/prosilver/theme/en/stylesheet.css
The translators could just add this if it's necessary for their language.

I'm just not sure, whether translators will remember and notice, that they can and should add that.
Member of the Development-TeamNo Support via PM

User avatar
EXreaction
Registered User
Posts: 1555
Joined: Sat Sep 10, 2005 2:15 am

Re: [RFC] Add "Tahoma" font

Post by EXreaction »

Yes, I saw that.

I was wondering, what happens if that stylesheet doesnt exist for a user's language? Does it default to english (to preserve buttons)?

User avatar
Meis2M
Registered User
Posts: 448
Joined: Fri Apr 23, 2010 10:18 am
Contact:

Re: [RFC] Add "Tahoma" font

Post by Meis2M »

thanks.
but .css files is not just in styles.
we have .css files in acp styles too.

is it possible add an element to language pack?

for example add:

Code: Select all

'ST_FONT'		=> '#',
and in .css files

Code: Select all

* {
   font-family:  {ST_FONT};
}
then translator put any font there?

User avatar
nickvergessen
Former Team Member
Posts: 733
Joined: Sun Oct 07, 2007 11:54 am
Location: Stuttgart, Germany
Contact:

Re: [RFC] Add "Tahoma" font

Post by nickvergessen »

As EXreaction already said, css files ar enot parsed anymore.
But maybe we can just put it into the rtl css? or are there rtl languages that do not require the font?

I think the best point to ask this question is the translators forum
Member of the Development-TeamNo Support via PM

User avatar
Meis2M
Registered User
Posts: 448
Joined: Fri Apr 23, 2010 10:18 am
Contact:

Re: [RFC] Add "Tahoma" font

Post by Meis2M »

i know Persian and Arabic languages use rtl and all of them need "Tahoma" font.
but i dont know all of rtl language need "Tahoma" or not.

User avatar
Arty
Former Team Member
Posts: 985
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars
Contact:

Re: [RFC] Add "Tahoma" font

Post by Arty »

nickvergessen wrote:EXreaction in 3.1 it's even easier.

Each language will have it's own css file for the buttons anyway: styles/prosilver/theme/en/stylesheet.css
The translators could just add this if it's necessary for their language.

I'm just not sure, whether translators will remember and notice, that they can and should add that.
Good idea. I think that solves problem.
EXreaction wrote:I was wondering, what happens if that stylesheet doesnt exist for a user's language? Does it default to english (to preserve buttons)?
Yep.

Post Reply