Entrance Chat Gallery Guilds Search Everyone Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
November 04, 2025 - @908.54 (what is this?)
Activity rating: Four Stars Posts & Arts: 60/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts Start New Topic  Submit Art
News: :4u: ~~~~~~~~~~~  :4u: Guild Events: Melon Jam 2025

+  MelonLand Forum
|-+  World Wild Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Font-Face Frustration


« previous next »
Pages: [1] Print
Author Topic: Font-Face Frustration  (Read 107 times)
WhiteFelineWonder
Jr. Member ⚓︎
**
View Profile WWW


⛺︎ My Room
StatusCafe: whitefelinewonder

Guild Memberships:
Artifacts:
Joined 2025!
« on: November 02, 2025 @840.98 »

As much as I like the Comic Sans font, I'm now finding myself wanting a font that'll show not just on my laptop but also mobile and other devices, that way the little extra personality flavor can still be around. Was told about font-face, but I'm having trouble understanding it... :sad:

Anybody got some tips or some useful notes I should know about this? Also, I figured I'd also bring up this:
I have a line in the body bracket of my style.css file for my site that calls for the Comic Sans font. Considering that I used to be on Neocities before December 2024, I don't know whether to keep that there or remove it entirely in favor of font-face since I haven't touched that part much.

Extra little bit: I'm going the "have the file in your site" route.

Any notes and useful tidbits much appreciated!
Logged

fairyrune
Jr. Member ⚓︎
**
View Profile WWW


we live to make the impossible possible!
⛺︎ My Room
iMood: fairyrune

Guild Memberships:
Artifacts:
Joined 2025!
« Reply #1 on: November 02, 2025 @867.27 »

:cry: i know the feeling... here is what mine looks like.

in my css, i have this at the top, using cinni's pixel basiic (the font i use now!) as an example.


Code
@font-face {
  font-family: "basiic";
  src: url("/fonts/basiic.ttf");
}

now when i use a div, i can specify what font family i want to use by plugging in "basiic"!

Code
.page {
  font-size: 13px;
  font-family: "basiic";
}

what does your code look like when you put it in? also, what editor do you use/how do you preview the result? i had a bit of an issue with my editor (phoenix code) and its live preview not showing the font unless i used catbox, for some reason...
« Last Edit: November 02, 2025 @868.74 by fairyrune » Logged

☾ "you want to run - i'll run with you" ☼

Artifact Swap: Phoenix DownEcho HerbsDino Fossil
WhiteFelineWonder
Jr. Member ⚓︎
**
View Profile WWW


⛺︎ My Room
StatusCafe: whitefelinewonder

Guild Memberships:
Artifacts:
Joined 2025!
« Reply #2 on: November 02, 2025 @881.20 »

The only editor I've ever really used is the one built into Nekoweb (and Neocities when I used to be there before switching). I did try VSCodium a bit at one point.

The part that has the callback to Comic Sans is at the top of the file and it looks like this:
Code
body {
  background-color: darkslateblue;
  color: white;
  font-family: 'comic sans ms', sans-serif;
}

Is there more to this than just inserting a few lines into the CSS? Like is there an HTML part to this?
I'm even checking with the guide that's on Sadgrl but I'm not seeing anything on the HTML part.
Logged

CyborWaffolz (dizzy)
Hero Member ⚓︎
*****
View Profile WWWArt


I dont🧠dat evrythngs a lie, as long as u ♡me 4evr
⛺︎ My Room
Matrix: Chat!
XMPP: Chat!

Guild Memberships:
Artifacts:
Wishing you Happy Times when you're online!Bred :320% coolerFirst 1000 Members!Joined 2023!
« Reply #3 on: November 02, 2025 @901.41 »

Oh its really easy. At the beginning of the CSS doc, you insert this:
Code
@font-face {
  font-family: "FamilyName";
  src: url("https://www.website.com/fontfile.xxxx");
}
Then whichever part you want the font to apply to, you add some code like this
Code
  font-family: "FamilyName";
  font-style: normal;
  font-weight: ###px;
  font-size: ###px;
  src: url("https://www.website.com/fontfile.xxxx") format('truetype/opentype/etc.');
}
Logged







WhiteFelineWonder
Jr. Member ⚓︎
**
View Profile WWW


⛺︎ My Room
StatusCafe: whitefelinewonder

Guild Memberships:
Artifacts:
Joined 2025!
« Reply #4 on: November 02, 2025 @925.81 »

Wait what about the line that calls for Comic Sans that's in the body section of my file? Do I have to remove it or leave it alone?

Also does the second code box go in HTML files or is it still in CSS?
Logged

CyborWaffolz (dizzy)
Hero Member ⚓︎
*****
View Profile WWWArt


I dont🧠dat evrythngs a lie, as long as u ♡me 4evr
⛺︎ My Room
Matrix: Chat!
XMPP: Chat!

Guild Memberships:
Artifacts:
Wishing you Happy Times when you're online!Bred :320% coolerFirst 1000 Members!Joined 2023!
« Reply #5 on: November 02, 2025 @941.23 »

Wait what about the line that calls for Comic Sans that's in the body section of my file? Do I have to remove it or leave it alone?

Also does the second code box go in HTML files or is it still in CSS?

You can keep that line. Dunno if it needs the serif or sans serif thing cuz ive never used that. And yes, the 2nd code box goes in CSS too. If you want more reference you can always look at my website for help.
Logged







WhiteFelineWonder
Jr. Member ⚓︎
**
View Profile WWW


⛺︎ My Room
StatusCafe: whitefelinewonder

Guild Memberships:
Artifacts:
Joined 2025!
« Reply #6 on: November 02, 2025 @967.41 »

Finally was able to get custom fonts working, thx. Boy oh boy this mind blank.... :sad:

Now's to just find a font that I can stick with...
Logged

Pages: [1] Print 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | ~ Send Feedback ~ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

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