Can I change the font to solve the weird Pinyin signal?

For support and discussion related to templates and themes in phpBB 3.3.
Post Reply
blackantt
Registered User
Posts: 7
Joined: Tue Jun 09, 2015 3:08 am

Can I change the font to solve the weird Pinyin signal?

Post by blackantt »

when I input the Chinese Pinyin on PhpBB 3.3.0, it displays abnormally.
phpbb-font3.3.jpg
User avatar
cabot
Registered User
Posts: 690
Joined: Sat Jan 07, 2012 4:16 pm
Contact:

Re: Can I change the font to solve the weird Pinyin signal?

Post by cabot »

Hello,

Perhaps you could try loading one of these fonts?

http://pinyin.info/news/2018/pinyin-fri ... gle-fonts/
blackantt
Registered User
Posts: 7
Joined: Tue Jun 09, 2015 3:08 am

Re: Can I change the font to solve the weird Pinyin signal?

Post by blackantt »

thanks to cabot, I think it's what I need. but how load the font, it's for PhpBB or linux server?
User avatar
cabot
Registered User
Posts: 690
Joined: Sat Jan 07, 2012 4:16 pm
Contact:

Re: Can I change the font to solve the weird Pinyin signal?

Post by cabot »

Could you try this first?

Open content.css, find:

Code: Select all

.content {
	clear: both;
	min-height: 3em;
	overflow: hidden;
	line-height: 1.4em;
	font-family: "Lucida Grande", "Trebuchet MS", Verdana, Helvetica, Arial, sans-serif;
	font-size: 1em;
	padding-bottom: 1px;
}
Replace:

Code: Select all

font-family: "Lucida Grande", "Trebuchet MS", Verdana, Helvetica, Arial, sans-serif;
With:

Code: Select all

font-family: sans-serif;
blackantt
Registered User
Posts: 7
Joined: Tue Jun 09, 2015 3:08 am

Re: Can I change the font to solve the weird Pinyin signal?

Post by blackantt »

thanks, almost ok. still 2 places need to be fixed. where and which one can I replace in the css file?
py-wrong.png
User avatar
cabot
Registered User
Posts: 690
Joined: Sat Jan 07, 2012 4:16 pm
Contact:

Re: Can I change the font to solve the weird Pinyin signal?

Post by cabot »

Actually I think it's the "Trebuchet MS" font that is not compatible.
You should do a search in the stylesheets and delete all these occurrences:

Code: Select all

"Trebuchet MS",
blackantt
Registered User
Posts: 7
Joined: Tue Jun 09, 2015 3:08 am

Re: Can I change the font to solve the weird Pinyin signal?

Post by blackantt »

nothing font detail in my stylesheets.
Actually I am satisfied with the result with a little bug, I don't dare to change the other elements. in case it gets worse. :)

Can I find which font css and where is it by inspect page with Chrome?
User avatar
cabot
Registered User
Posts: 690
Joined: Sat Jan 07, 2012 4:16 pm
Contact:

Re: Can I change the font to solve the weird Pinyin signal?

Post by cabot »

Of course, use Chrome DevTools. ;)
Post Reply

Return to “[3.3.x] Styles Support & Discussion”