Home Wiki Search Login Register

Welcome, Guest. Please login or register.
January 28, 2023, 09:48:23 pm
Forum activity rating: Four Star Posts: 56/24hrs Show Unread Posts | Unread Replies | Own Posts | Recent Posts
News: \o/ Check out the new FONTS!!! \o/

+  MelonLand Forum
|-+  Workshop Zone
| |-+  Tutorials & Help
| | |-+  Custom Fonts
« previous next »
Pages: [1] Print
Author Topic: Custom Fonts  (Read 245 times)
dotmidi
Jr. Member
**
Posts: 97


oh love, like liquid falling / falling in cascades

View Profile WWW
« on: December 13, 2022, 05:02:48 pm »

is it just me but do downloading custom font's and following any tutorial to make them work is just.. NOT WORKING?!  :TnT:
I tried every code and followed every tutorial and used even different types of fonts and font files!
I am beginning to think maybe neocities does not support custom fonts maybe?  :C
Logged
Melooon
Administrator
Hero Member
*****
Posts: 939


So many stars!

SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games

View Profile WWW
« Reply #1 on: December 13, 2022, 05:55:44 pm »

Neocities does support fonts  ;D Although firstly I assume you need to be a supporter to upload them (you can still link them form other hosts like ichi.city)

How to:

Its really simple, you just need a ttf file (the standard font file you get from most font sites) and then I like to make a font.css file to make adding the font to a page simple. Iv attached both below as examples (basiic font made by cinni!!)

Then to add it to your webpage just link the css and set your font.
Code: [Select]
<link href="basiic.css" rel="stylesheet" type="text/css" media="all" />
<style>
  body {
    font-family: "basiic", monospace;
  }
</style>

To adapt this to other fonts, just change the ttf file and edit the css file so it has the right names ^^

Hope that helps!  \o/

(Also for non neocities hosted or other kinds of web fonts, Iv never used them, but the process would be the same!)

* basiic.css (0.17 kB - downloaded 12 times.)
* basiic.ttf (14.91 kB - downloaded 10 times.)
Logged


everything lost will be recovered, when you drift into the arms of the undiscovered
dotmidi
Jr. Member
**
Posts: 97


oh love, like liquid falling / falling in cascades

View Profile WWW
« Reply #2 on: December 13, 2022, 06:42:46 pm »

i had a feeling it might have to be a supporter thing  :C
Logged
dotmidi
Jr. Member
**
Posts: 97


oh love, like liquid falling / falling in cascades

View Profile WWW
« Reply #3 on: December 13, 2022, 06:44:14 pm »

il try again! if im able to do it w/o paying money that would be great
if not, i'll just get my work paycheck later  :D :D
Logged
Melooon
Administrator
Hero Member
*****
Posts: 939


So many stars!

SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games

View Profile WWW
« Reply #4 on: December 13, 2022, 06:47:42 pm »

If you can link the ttf file from somewhere else thats fine, no supporter needed, as long as its a raw link! (but be aware if that other host goes down i'll break fonts on your site!)
Logged


everything lost will be recovered, when you drift into the arms of the undiscovered
/home/user/
Sr. Member
****
Posts: 389



StatusCafe: sprinkles
XMPP: Chat!

View Profile WWW
« Reply #5 on: January 21, 2023, 02:11:14 pm »

.otf works too by the way, it's the free and open replacement for the unfree .ttf standard but compatible with it.
Logged


Status Cafe Profile
Pages: [1] Print 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines RSS | WAP2 | BBCode Help


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery!