Solved

Some special chars doesn't appear using Google Fonts

Posted on 2014-01-15
6
518 Views
Last Modified: 2014-01-15
Hi.

The blog http://glutoniana.com is using some spanish characters (for example on a post title  "Año nuevo..." where is the "ñ" char.

A friend of mine test web on its Android tabled and the "ñ" char doesn't appear (it appear a white space on its place).

This blog is using Wordpress and the template uses some Google Fonts ( 'TitilliumText22LRegular' is the font used on these titles).

How can I make the ñ character appear on all devices?

Thank you
0
Comment
Question by:gplana
  • 3
  • 3
6 Comments
 
LVL 42

Expert Comment

by:Chris Stanyon
Comment Utility
Not all fonts contain all characters!

When you use Google fonts, and click on the 'Use' button, you have the option of which character sets to include (Latin, Latin Extended, Cyrillic etc.)

If the font doesn't include all possible characters, then there's nothing you can do about it.
0
 
LVL 15

Author Comment

by:gplana
Comment Utility
The character is shown well on my computer (on all browsers). Isn't it strange?

I will try what you said. Where should I configure? On the css file?
Can you give me an example? I'm a newbie on Google Fonts (the template was already made).

Thank you.
0
 
LVL 42

Expert Comment

by:Chris Stanyon
Comment Utility
OK. Just looked at your site and you're not using Google Fonts - you are using a @font-face declaration in your CSS file (bottom of the styles.css file) to read the various formats of the font (ttf, eof, svg etc.)

I've looked at your site on Android and it's seems to be working OK for me.

The font you've used isn't particularly well designed (look closely at your site and you'll see the Spanish characters are actually a different font to the rest of the text).

It may simply be that the browser your friend is using doesn't support these additional characters from this particular font.

One thing I would do is change the way you declare your character set in the head of your page. At the moment you have this:

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

Change it to this:

<meta charset="UTF-8">

Not sure what else you can try other than looking for a better quality font.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 15

Author Comment

by:gplana
Comment Utility
Thank you, I added the <meta charset="UTF-8" />

How can I look for a better quality font? What should I change when I found it to apply this new font instead of the old one?

Sorry, I'm a newbie about font types.

Thank you.
0
 
LVL 42

Accepted Solution

by:
Chris Stanyon earned 500 total points
Comment Utility
The problem with using the font-face declaration in your CSS is that you need the same font in 4 different formats to make sure it works in all browsers - ttf, svg, eot, and woff. The better quality fonts are usually the ones you pay for from a font library and they're not necessarily cheap.

There are tools available online to convert a ttf font into the other formats (fontsquirrel.com etc) but you have to be aware of copyright issues - you can't just convert any font. Font Squirrel have a lot of fonts available so you may find a good quality freebie there.

Managing fonts across all browser and platforms can be a little tricky if you're not careful so if you're new to using fonts, I would suggest that you start out by just using a standard web-safe font-stack in your CSS until you know things are working properly. For your headings, something like this would work:

font-family: Verdana, Geneva, sans-serif;

Forget about Google fonts, and font-face declarations for the time being. Make sure your site works the way you want it to (showing all characters across all browsers), and then think about adding fancy fonts, either by using Google Fonts (you simply add a link to the Google Fonts in the head of your document and then reference them in your CSS file), or grabbing a high-quality font set and fully testing it. As I said right at the start of this thread - not all fonts contain all characters - particularly the non-latin ones
0
 
LVL 15

Author Closing Comment

by:gplana
Comment Utility
Great. Thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now