YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


 
Pages: 1 2 
Topic Tools
 
Font Not Working (Read 7,600 times)
 Jan 24th, 2008 at 2:09pm
There are no actions to perform.  

smith21 
Support Team
****
Offline
Posts: 4,659
Stockton - on - Tees,  England


YaBB 2.5
Font Not Working
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
...
WWW 1281257524  
IP Logged  
 Reply #1 - Jan 24th, 2008 at 3:59pm
There are no actions to perform.  
Carsten 
Ex Member


None
Re: Font Not Working
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; 


 
 
IP Logged  
 Reply #2 - Jan 24th, 2008 at 4:11pm
There are no actions to perform.  

Jet Li 
Legacy Dev Team
Development Team
****
Offline
Posts: 6,588
Hong Kong


None
Re: Font Not Working
Hi
New YaBBC.pl in CVS.  Wink
 
...
PM me for YaBB Installation Service
WWW Jet Li 100000788351637  
IP Logged  
 Reply #3 - Jan 24th, 2008 at 8:18pm
There are no actions to perform.  

smith21 
Support Team
****
Offline
Posts: 4,659
Stockton - on - Tees,  England


YaBB 2.5
Re: Font Not Working
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
...
WWW 1281257524  
IP Logged  
 Reply #4 - Jan 24th, 2008 at 8:43pm
There are no actions to perform.  
Carsten 
Ex Member


None
Re: Font Not Working
working on all my (5) test boards.
 
 
IP Logged  
 Reply #5 - Jan 24th, 2008 at 8:46pm
There are no actions to perform.  

Jet Li 
Legacy Dev Team
Development Team
****
Offline
Posts: 6,588
Hong Kong


None
Re: Font Not Working
 
...
PM me for YaBB Installation Service
WWW Jet Li 100000788351637  
IP Logged  
 Reply #6 - Jan 24th, 2008 at 8:51pm
There are no actions to perform.  
Captain John 
Ex Member


None
Re: Font Not Working
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 N/A »  
 
IP Logged  
 Reply #7 - Jan 24th, 2008 at 8:52pm
There are no actions to perform.  

Jet Li 
Legacy Dev Team
Development Team
****
Offline
Posts: 6,588
Hong Kong


None
Re: Font Not Working
Hi
its fixed on last YaBBC.pl  Wink
 
...
PM me for YaBB Installation Service
WWW Jet Li 100000788351637  
IP Logged  
 Reply #8 - Jan 24th, 2008 at 8:54pm
There are no actions to perform.  
Carsten 
Ex Member


None
Re: Font Not Working
Quote:
the problem seems to be No Font named Sans-Serif

Nope - the problem was the missing dash in the regex in YaBBC.pl
 
 
IP Logged  
 Reply #9 - Jan 24th, 2008 at 9:00pm
There are no actions to perform.  
Captain John 
Ex Member


None
Re: Font Not Working
Ok ..... do you see a difference in Courier New and "m"onospace ?
 
 
IP Logged  
 Reply #10 - Jan 24th, 2008 at 9:13pm
There are no actions to perform.  
Carsten 
Ex Member


None
Re: Font Not Working
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 N/A »  
 
IP Logged  
 Reply #11 - Jan 25th, 2008 at 7:54am
There are no actions to perform.  

smith21 
Support Team
****
Offline
Posts: 4,659
Stockton - on - Tees,  England


YaBB 2.5
Re: Font Not Working
working now cheers guys.
 
Cheers
...
WWW 1281257524  
IP Logged  
 Reply #12 - Jan 25th, 2008 at 3:38pm
There are no actions to perform.  
Carsten 
Ex Member


None
Re: Font Not Working
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 N/A »  
 
IP Logged  
 Reply #13 - Jan 25th, 2008 at 3:50pm
There are no actions to perform.  

Jet Li 
Legacy Dev Team
Development Team
****
Offline
Posts: 6,588
Hong Kong


None
Re: Font Not Working
Woow. Cool

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

Result: Font Tests
 
...
PM me for YaBB Installation Service
WWW Jet Li 100000788351637  
IP Logged  
 Reply #14 - Jan 25th, 2008 at 7:40pm
There are no actions to perform.  

Jet Li 
Legacy Dev Team
Development Team
****
Offline
Posts: 6,588
Hong Kong


None
Re: Font Not Working
Add new Font Types for Send PM Page too.


New InstantMessage.pl in CVS.
 
...
PM me for YaBB Installation Service
WWW Jet Li 100000788351637  
IP Logged  
Pages: 1 2 
Topic Tools
 

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser

YaBB Facebook Group Page

Vulnerability Scanner

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 3.0 Beta!
YaBB Forum Software © 2000-2011. All Rights Reserved.