Page Index Toggle Pages: [1] 2 
Topic Tools
Hot Topic (More than 10 Replies) Font Not Working (Read 8,287 times)
smith21
Support Team
****
Offline



Posts: 4,660
Location: Stockton - on - Tees,  England

None
Font Not Working
Jan 24th, 2008 at 2:09pm
Post Tools
When Using the Sans-Serif font tag it does not work

Testing the font Sans-Serif

Testing the font Courier New
« Last Edit: Jan 24th, 2008 at 2:11pm by smith21 »  

Cheers
Back to top
IP Logged
 
Carsten
Ex Member


Re: Font Not Working
Reply #1 - Jan 24th, 2008 at 3:59pm
Post Tools
Confirmed.

In YaBBC.pl change:

Code
Select All
	$message =~ s~\[font=([A-Za-z0-9# ]+)\](.+?)\[/font\]~<span style="font-family:$1;">$2</span>~isg; 


to:
Code
Select All
	$message =~ s~\[font=([A-Za-z0-9# -]+)\](.+?)\[/font\]~<span style="font-family:$1;">$2</span>~isg; 


  
Back to top
 
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Font Not Working
Reply #2 - Jan 24th, 2008 at 4:11pm
Post Tools
Hi
New YaBBC.pl in CVS.  Wink
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
smith21
Support Team
****
Offline



Posts: 4,660
Location: Stockton - on - Tees,  England

None
Re: Font Not Working
Reply #3 - Jan 24th, 2008 at 8:18pm
Post Tools
Quote:
Confirmed.

In YaBBC.pl change:

Code
Select All
	$message =~ s~\[font=([A-Za-z0-9# ]+)\](.+?)\[/font\]~<span style="font-family:$1;">$2</span>~isg; 


to:
Code
Select All
	$message =~ s~\[font=([A-Za-z0-9# -]+)\](.+?)\[/font\]~<span style="font-family:$1;">$2</span>~isg; 




Still Not working guys on my forum

Test Font
« Last Edit: Jan 24th, 2008 at 8:20pm by smith21 »  

Cheers
Back to top
IP Logged
 
Carsten
Ex Member


Re: Font Not Working
Reply #4 - Jan 24th, 2008 at 8:43pm
Post Tools
working on all my (5) test boards.
  
Back to top
 
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Font Not Working
Reply #5 - Jan 24th, 2008 at 8:46pm
Post Tools
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Captain John
Ex Member


Re: Font Not Working
Reply #6 - Jan 24th, 2008 at 8:51pm
Post Tools
the problem seems to be No Font named Sans-Serif

Code
Select All
[font=Sans-Serif]abcdefgABCDEFG[/font]
[font=Verdana]abcdefgABCDEFG[/font]
[font=Arial]abcdefgABCDEFG[/font]
[font=Serif]abcdefgABCDEFG[/font]
[font=Courier]abcdefgABCDEFG[/font]
[font=Courier New]abcdefgABCDEFG[/font]
[font=monospace]abcdefgABCDEFG[/font]

[font=Global Sans Serif]abcdefgABCDEFG[/font]
[font=MS Sans Serif]abcdefgABCDEFG[/font] 



abcdefgABCDEFG
abcdefgABCDEFG
abcdefgABCDEFG
abcdefgABCDEFG
abcdefgABCDEFG
abcdefgABCDEFG
abcdefgABCDEFG

abcdefgABCDEFG
abcdefgABCDEFG
« Last Edit: Jan 24th, 2008 at 8:56pm by »  
Back to top
 
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Font Not Working
Reply #7 - Jan 24th, 2008 at 8:52pm
Post Tools
Hi
its fixed on last YaBBC.pl  Wink
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Carsten
Ex Member


Re: Font Not Working
Reply #8 - Jan 24th, 2008 at 8:54pm
Post Tools
Quote:
the problem seems to be No Font named Sans-Serif

Nope - the problem was the missing dash in the regex in YaBBC.pl
  
Back to top
 
IP Logged
 
Captain John
Ex Member


Re: Font Not Working
Reply #9 - Jan 24th, 2008 at 9:00pm
Post Tools
Ok ..... do you see a difference in Courier New and "m"onospace ?
  
Back to top
 
IP Logged
 
Carsten
Ex Member


Re: Font Not Working
Reply #10 - Jan 24th, 2008 at 9:13pm
Post Tools
Quote:
Ok ..... do you see a difference in Courier New and "m"onospace ?

No - and they are (almost) the same on most computers/browsers. Courier New is a fixed-width 'monospace' font. Actually 'monospace' is the generic font for the fixed-width font-family.
« Last Edit: Jan 24th, 2008 at 9:52pm by »  
Back to top
 
IP Logged
 
smith21
Support Team
****
Offline



Posts: 4,660
Location: Stockton - on - Tees,  England

None
Re: Font Not Working
Reply #11 - Jan 25th, 2008 at 7:54am
Post Tools
working now cheers guys.
  

Cheers
Back to top
IP Logged
 
Carsten
Ex Member


Re: Font Not Working
Reply #12 - Jan 25th, 2008 at 3:38pm
Post Tools
Not a fix - just a suggestion to give more (cross browser) font options

[size=14]Sans Serif:
[font=Microsoft Sans Serif]tester font - Microsoft Sans Serif[/font]
[font=Verdana]tester font - Verdana[/font]
[font=Arial]tester font - Arial[/font]
[font=Tahoma]tester font - Tahoma[/font]
[font=Lucida Sans]tester font - Lucida Sans[/font]

Serif:
[font=Times New Roman]tester font - Times New Roman[/font]
[font=Georgia]tester font - Georgia[/font]

Monospace:
[font=Courier]tester font - Courier[/font]
[font= Courier New]tester font - Courier New[/font]
[font=Bitstream Vera Sans Mono]tester font - Bitstream Vera Sans Mono[/font]

Cursive:
[font=Comic Sans MS]tester font - Comic Sans MS[/font]
[font=Bradley Hand ITC]tester font - Bradley Hand ITC[/font]
[font=Tempus Sans ITC]tester font - Tempus Sans ITC[/font]

Fantasy:
[font=Impact]tester font - Impact[/font]
[font=Papyrus]tester font - Papyrus[/font][/size]

In Post.pl change:
[code]                        document.write('<select name="fontface" id="fontface" onchange="if(this.options[this.selectedIndex].value) fontfce(this.options[this.selectedIndex].value);" style="width: 90px; margin-top: 2px; margin-left: 2px; margin-right: 1px; font-size: 9px;">');
                       document.write('<option value="">Verdana<\/option>');
                       document.write('<option value="">\\-\\-\\-\\-\\-<\/option>');
                       document.write('<option value="Sans-Serif" style="font-family: Sans-Serif">Sans-Serif</option>');
                       document.write('<option value="Verdana" style="font-family: Verdana" selected="selected">Verdana<\/option>');
                       document.write('<option value="Arial" style="font-family: Arial">Arial<\/option>');
                       document.write('<option value="Serif" style="font-family: Serif">Serif<\/option>');
                       document.write('<option value="Courier" style="font-family: Courier">Courier<\/option>');
                       document.write('<option value="Courier New" style="font-family: Courier New">Courier New<\/option>');
                       document.write('<option value="monospace" style="font-family: monospace">Monospace<\/option>');
                       document.write('</select>');
[/code]
to:
[code]                        document.write('<select name="fontface" id="fontface" onchange="if(this.options[this.selectedIndex].value) fontfce(this.options[this.selectedIndex].value);" style="width: 90px; margin-top: 2px; margin-left: 2px; margin-right: 1px; font-size: 9px;">');
                       document.write('<option value="">Verdana<\/option>');
                       document.write('<option value="">\\-\\-\\-\\-\\-<\/option>');
                       document.write('<option value="Microsoft Sans Serif" style="font-family: Microsoft Sans Serif">MS Sans Serif<\/option>');
                       document.write('<option value="Verdana" style="font-family: Verdana" selected="selected">Verdana<\/option>');
                       document.write('<option value="Arial" style="font-family: Arial">Arial<\/option>');
                       document.write('<option value="Tahoma" style="font-family: Tahoma">Tahoma<\/option>');
                       document.write('<option value="Lucida Sans" style="font-family: Lucida Sans">Lucida Sans<\/option>');
                       document.write('<option value="Times New Roman" style="font-family: Times New Roman">Times New Roman<\/option>');
                       document.write('<option value="Georgia" style="font-family: Georgia">Georgia<\/option>');
                       document.write('<option value="Courier" style="font-family: Courier">Courier<\/option>');
                       document.write('<option value="Courier New" style="font-family: Courier New">Courier New<\/option>');
                       document.write('<option value="Bitstream Vera Sans Mono" style="font-family: Bitstream Vera Sans Mono">Bitstream<\/option>');
                       document.write('<option value="Comic Sans MS" style="font-family: Comic Sans MS">Comic Sans MS<\/option>');
                       document.write('<option value="Bradley Hand ITC" style="font-family: Bradley Hand ITC">Bradley Hand ITC<\/option>');
                       document.write('<option value="Tempus Sans ITC" style="font-family: Tempus Sans ITC">Tempus Sans ITC<\/option>');
                       document.write('<option value="Impact" style="font-family: Impact">Impact<\/option>');
                       document.write('<option value="Papyrus" style="font-family: Papyrus">Papyrus<\/option>');
                       document.write('</select>');
[/code]

And in YaBBC.pl (current cvs) change:
[code]      $message =~ s~\[font=([A-Za-z0-9# -]+)\](.+?)\[/font\]~<span style="font-family:$1;">$2</span>~isg;
[/code]
to:
[code]      $message =~ s~\[font=([A-Za-z0-9# -]+)\](.+?)\[/font\]~<span style="font-family: $1;">$2</span>~isg;
[/code]
« Last Edit: Jan 25th, 2008 at 3:39pm by »  
Back to top
 
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Font Not Working
Reply #13 - Jan 25th, 2008 at 3:50pm
Post Tools
Woow. Cool

New Post.pl and YaBBC.pl in CVS.  Smiley

Result: Font Tests
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Font Not Working
Reply #14 - Jan 25th, 2008 at 7:40pm
Post Tools
Add new Font Types for Send PM Page too.


New InstantMessage.pl in CVS.
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Topic Tools
 
  « Board Index ‹ Board  ^Top