Author Topic: Help poor hobo learn to code - [PAYING FOR SOLUTION]  (Read 1788 times)

0 Members and 1 Guest are viewing this topic.

pogosan

  • Guest
Help poor hobo learn to code - [PAYING FOR SOLUTION]
« on: April 16, 2016, 09:28:46 pm »
+4
« Last Edit: April 16, 2016, 09:36:32 pm by pogosan »

pogosan

  • Guest
Re: Help poor hobo learn to code - [PAYING FOR SOLUTION]
« Reply #1 on: April 16, 2016, 09:37:49 pm »
0

Offline Leshma

  • Kickstarter Addict
  • King
  • **********
  • Renown: 390
  • Infamy: 1464
  • cRPG Player Sir White Rook A Gentleman and a Scholar
  • VOTE 2024
    • View Profile

pogosan

  • Guest
Re: Help poor hobo learn to code - [PAYING FOR SOLUTION]
« Reply #3 on: April 16, 2016, 10:09:13 pm »
0

Offline Tibes

  • Count
  • *****
  • Renown: 150
  • Infamy: 12
  • cRPG Player
    • View Profile
Re: Help poor hobo learn to code - [PAYING FOR SOLUTION]
« Reply #4 on: April 16, 2016, 10:11:47 pm »
+1
Im actually work as a front-end developer. I think I could help you with that. I generally download the fonts I need from here:

https://www.fontsquirrel.com/

Rest of my office developers use this site too. Because once you download it, you stick the ones you need into the generator on this site and optimize it according to your needs. And before you ask, the font formats should be eot, woff and truetype. One other thing on this page is that after generating the fonts it also gives you the css, on how to correctly add them(the path however still might be different).

Offline Rhekimos

  • Duke
  • *******
  • Renown: 672
  • Infamy: 78
  • cRPG Player
  • ふふふふふ
    • View Profile
    • Forbiddena
  • Game nicks: Fallen_Rhekimos
  • IRC nick: Rhekimos
Re: Help poor hobo learn to code - [PAYING FOR SOLUTION]
« Reply #5 on: April 16, 2016, 10:26:27 pm »
+1
I tried that as I mentioned above, thanks anyway.

Also, when inspecting element font is name is correct, but it still shows incorrect one. For some weird reason it also shows different font in Internet Explorer than in Firefox and Opera. Not correct though.

Internet Explorer has always been the bane of web due to their innovative ways to fuck things up and disregard all sense.

Try adding !important to the end.

(click to show/hide)

With your font in there.



Offline Tibes

  • Count
  • *****
  • Renown: 150
  • Infamy: 12
  • cRPG Player
    • View Profile
Re: Help poor hobo learn to code - [PAYING FOR SOLUTION]
« Reply #6 on: April 16, 2016, 10:33:31 pm »
+1
Nevermind what I said. I think I misunderstood the prob and gave unneeded info.:lol:

pogosan

  • Guest
Re: Help poor hobo learn to code - [PAYING FOR SOLUTION]
« Reply #7 on: April 16, 2016, 10:37:18 pm »
0

Offline LordBerenger

  • King
  • **********
  • Renown: 1492
  • Infamy: 859
  • cRPG Player
  • Jesus is the savior of Earth
    • View Profile
    • .........
visitors can't see pics , please register or login

pogosan

  • Guest
Re: Help poor hobo learn to code - [PAYING FOR SOLUTION]
« Reply #9 on: April 16, 2016, 10:45:21 pm »
0

Offline Tibes

  • Count
  • *****
  • Renown: 150
  • Infamy: 12
  • cRPG Player
    • View Profile
Re: Help poor hobo learn to code - [PAYING FOR SOLUTION]
« Reply #10 on: April 16, 2016, 10:45:37 pm »
+2
Nope, didn't work either. I can see font being applied through "inspect element", but it shows just default one in every browser I tried.

Is something overwriting it? If not you might have just wrote it wrong and its not being applied. Tried it myself just now. And works. The importingmethod(number 1) you used was correct, just stick it in the css and you got it. To use it on an element you have to write the font-family correctly : 'Eagle Lake'. You type in Eagle_Lake or EagleLake and it wont be applied. And if thats not the case either you didnt apply it to the correct element.

Pretty hard to say, if I dont see the code. You got it on live site so I can inspect it?

Offline Leshma

  • Kickstarter Addict
  • King
  • **********
  • Renown: 2809
  • Infamy: 656
  • cRPG Player Sir White Rook A Gentleman and a Scholar
  • VOTE 2024
    • View Profile
Re: Help poor hobo learn to code - [PAYING FOR SOLUTION]
« Reply #11 on: April 16, 2016, 10:55:53 pm »
+2
I tried that as I mentioned above, thanks anyway.

Also, when inspecting element font is name is correct, but it still shows incorrect one. For some weird reason it also shows different font in Internet Explorer than in Firefox and Opera. Not correct though.

Reason isn't weird, IE is garbage but still popular browser so you have to support it... you see, Microsoft have a nasty habit of forcing its own standards on everything. Web is Google's territory and they use open standards. Microsoft made their own...

@font-face defines specific font you want to you use. You have to define same font twice in case you want second one to have different properties eg. bold, italic etc. Try these exercises first: 1, 2 (http://www.w3schools.com/css/css3_fonts.asp)

This is how Google does it: https://fonts.googleapis.com/css?family=Open+Sans. Make sure you specify format as well, woff2 doesn't work by default in Firefox and at all in IE 8.0 and older.

You'll have to specify different font for each element in div {} as explained above.

pogosan

  • Guest
Re: Help poor hobo learn to code - [PAYING FOR SOLUTION]
« Reply #12 on: April 16, 2016, 11:00:16 pm »
+1

Offline Tibes

  • Count
  • *****
  • Renown: 150
  • Infamy: 12
  • cRPG Player
    • View Profile
Re: Help poor hobo learn to code - [PAYING FOR SOLUTION]
« Reply #13 on: April 16, 2016, 11:18:30 pm »
+1
According to api link, it gives you nothing but woff2. Which, like Leshma said, has crap support.

One guy suggested this:

Quote
You have to download the font using different browsers and watching the web inspector, thats because google detects which font type needs your browser.

So the solution to your browsersupport problem is that you need to go to firefox stick this adress in there https://fonts.googleapis.com/css?family=Eagle+Lake. Get the src line and stick it in your css. You can, mybe, not 100% sure how this works with font urls(I generally work with filepaths when I add fonts), have multiple src-s, inside one @font-face to make sure you have full browser support. Like src-s to eot and truetype url-s. You could just replace the entire woff2 src with the woff src you got from firefox. Because woff works with more browsers.
« Last Edit: April 16, 2016, 11:40:55 pm by Tibes »

Offline Leshma

  • Kickstarter Addict
  • King
  • **********
  • Renown: 2118
  • Infamy: 1079
  • cRPG Player Sir White Rook A Gentleman and a Scholar
  • VOTE 2024
    • View Profile
Re: Help poor hobo learn to code - [PAYING FOR SOLUTION]
« Reply #14 on: April 16, 2016, 11:36:31 pm »
+2
It says woff, not woff2. Older format should be supported in Firefox by default. Think Firefox is blocking fonts for security reasons, because they aren't under same domain as site.

Edit: This could be solution.
« Last Edit: April 16, 2016, 11:40:24 pm by Leshma »