Font does not accept accentuation

Asked

Viewed 7,805 times

4

Speaking personally, I’m using a custom font, so I use @fontface in CSS. I’m having trouble putting accent, when I put it looks like this, follow the link below:

inserir a descrição da imagem aqui

What I could do ?

  • 3

    I don’t know much about fonts, but I’m afraid the answer is "nothing"... :( Either a font supports a certain set of characters or it doesn’t. You can’t show Japanese in Arial, Times New Roman, Courier... Similarly, if the author of the font did not include accented characters, or included them with "wrong" proportions, or - as seems to be the case - there are no capital accented letters, only lowercase letters, the only output seems to be font switching.

  • P.S. Try writing the Ê not as a composite character, but like a couple of matching characters (E\u0302). 99% chance of getting ugly, but it might work...

  • 1

    I’m having the same problem as you and I see sense in what @mgibsonbr said. The characters of a font type are determined for a specific output type. As sometimes the audience of that source is local, there is no concern to insert Latin characters for example.

  • I will have to change the font even. I tried the matching characters and it didn’t work. thanks @mgibsonbr. You recommend some site to choose fonts?

  • @Andersonmenezes No, I always use the sources "normal" even, I don’t know others... Or, of course, the sources Liberation hehe (sources licensed GNU GPL :P)

  • I’ll look around to see if I can find a similar one.

  • google.com/fonts

Show 2 more comments

3 answers

5

This is not a CSS problem. The problem is found in the font character set. The solution would be to find an internationalized version of the desired font, or to use another one that you like and have the full set for the language used.

A possible (and laborious) solution would be to download the font, and use a character editor (there are some free and others paid in the market). Most of these programs allow you to copy parts of one character to others, so you could match the desired accents and letters.

In this second case, it is very important to read the original license of the desired source to see if modifications and subsequent publication are allowed.

1

That’s right has source that has no support for our language. When it comes titles or small text I solve so:

I convert the text into a curve and add the accent manually, ç - ` , etc.... now if it is long text there is no way only changing font.

Antônio Carlos

-5

In fact the source in question supports, see that it displays the character in question.

So just use the correct type.

For this in the first line code use the PHP setlocale function

setlocale(LC_ALL,"pt_BR");

  • 1

    For more details http://php.net/manual/en/function.setlocale.php

Browser other questions tagged

You are not signed in. Login or sign up in order to post.