#Custom Fonts Mod [Deprecated]

186 messages · Page 1 of 1 (latest)

cosmic oriole
random mango
#

I wonder how helvetica will look

cosmic oriole
#

You can also change the font size in the code if you want to tweak it @random mango

random mango
#

nah its good i fixed my issue

#

i deleted it like almost instantly and you already saw it lmao

cosmic oriole
#

I set it to slightly smaller than normal by default because most fonts are wider than m6x11

random mango
#

ngl i like 0.1 instead of 0.07

cosmic oriole
#

Is that Arial lol

random mango
#

thats helvetica

dusty sand
random mango
#

oh god

cosmic oriole
#

That’s going to look so cursed

dusty sand
#

Even better

cosmic oriole
#

Wait I have a funny idea

upbeat jay
#

||wingdings??||

dusty sand
cosmic oriole
#

I made Balatro accessible

#

Now people who are blind can play balatrojoker

upbeat jay
#

i dont know if that's better or worse than what I said

#

could you use this to make a custom joker with some ridiculous effect like x5 mult, changes font to braille
is that possible yet?

cosmic oriole
#

It should be once there’s an API for adding Jokers

#

Enchanting table

#

The numbers are too readable :(

upbeat jay
#

what's the 0:05._.949?

upbeat jay
#

ah ok

cosmic oriole
#

well this is interesting

#

If Balatro was a retro game

dusty sand
#

This one looks good imo

cosmic oriole
#

Still has some font scaling issues but it works

cosmic oriole
#

Someone recreated the font used in tarot/planet/spectral cards

void stirrup
#

Ah

random mango
#

i feel like we gonna need some mod that gives good anti aliasing to make fonts look nice

ebon burrow
#

yep this is terrible

random mango
#

i mean some fonts look good

#

but some look very bad without aa

ebon burrow
#

ik im just messing and used comic sans cause i wanted to see how it looked XD

void stirrup
cosmic oriole
#

The computer chip as the stake chip too lol

random mango
#

Math is it possible to add an aa feature or something to balatro? Like I can see it while I play and I wonder

#

In the images you don't really see it but on a bigger monitor you could see it

cosmic oriole
#

Depends on if Love2D supports that

#

And then you have to modify the font rendering code in Balatro

random mango
#

so basically effort

#

welp rip

viral shale
fringe thistle
#

Is the mod only change the font of English?

#

How to change the fonts of other language?

cosmic oriole
#

The fallback font is handled differently, I can see if I can try and change it

midnight nova
cosmic oriole
#

Beating Balatro, but .

#

@sly oasis

midnight nova
#

it's actually insanely funny

cosmic oriole
#

" " -Jimbo

sly oasis
#

sweat

#

Me when balatro but

midnight nova
#

i still can't get past ante 3

sullen elm
#

tried rollercoaster tycoon font

zenith horizon
#

either its mods themselves or there's some kind of memory leak happening in this mod i think

#

cause i kept having less and less fps, but going back to main menu and loading back the run fixed it

floral plaza
#

i think thats a steamodded 0.9.2 issue

dusty sand
#

0.9.3 fix it

left summit
#

I made a custom version of Pricedown (GTA font) from a couple different versions of the font to make an overall better version, and gave the numbers a different font called "Small Pixel 7" -I included my version of the font if anyone wants it.

ebon silo
last oriole
cosmic oriole
weak heart
#

does this ship with the Tarot Text font? unironically i love how it looks

weak heart
#

sick

#

the only issue is i wish it had the other D

#

hmmmm i wonder how hard it is to fontstruct

weak heart
#

(it was trivial to port this to 1.0 lol)

cosmic oriole
#

Did you even need to change anything lol

#

I don’t think I used any Steamodded API

weak heart
#

SMODS.findModByID is dead and SMODS.INIT doesnt exist

#

would you want me to just send the 1.0-compatible code?

cosmic oriole
#

sure, I can add it to the original message

weak heart
#

thank you for allowing me this cursed garbage

cosmic oriole
#

lol I'm messing with it but can't get it to work

#
--- STEAMODDED HEADER
--- MOD_NAME: Custom Font
--- MOD_ID: CustomFont
--- MOD_AUTHOR: [MathIsFun_]
--- MOD_DESCRIPTION: Allows setting the game font to a custom font. Must be named "font.ttf".

----------------------------------------------
------------MOD CODE -------------------------
local customfont_mod = SMODS.current_mod
if NFS.read(customfont_mod.path.."font.ttf") ~= nil then
    print("HEY!")
    local file = NFS.read(customfont_mod.path.."font.ttf")
    NFS.write(love.filesystem.getAppdataDirectory( ).."/temp-font.ttf", file)
    G.LANG.font.FONT = love.graphics.newFont(love.filesystem.getAppdataDirectory( ).."/temp-font.ttf", G.TILESIZE * 10)
    G.LANG.font.FONTSCALE = 0.07 --Can be configured to adjust text size
    NFS.remove(love.filesystem.getAppdataDirectory( ).."/temp-font.ttf")
end
----------------------------------------------
------------MOD CODE END----------------------
``` (note this is test code, scroll above for the usable one)
#

love does not want to read the files for some reason

weak heart
#

that looks compliced

cosmic oriole
#

I'm trying to use nativefs to move the file into a directory LOVE likes, but for some reason it's not working

weak heart
#

why does it not like the directory you were using

cosmic oriole
#

idk

#

I tried a few

last oriole
#

Another one this time

worn sage
#

oo

weak heart
#

you have given me too much power

worn sage
#

thunk is weeping right now

weak heart
worn sage
#

you sicken me

floral plaza
#

balatro if it was epic

cosmic oriole
#

This font screams exclamation points

turbid galleon
weak heart
#

its like a robocop font or smth i was trying to find a nice one to switch things up and all i got was cursed stuff

turbid galleon
#

Well I use Belligerent Madness as a display font so I'm not one to really talk about cursed :p

ripe vale
slow patrol
#

I tried using modified m6x11plus and... it seems to be a bit small

#

well, I guess it's reasonable since the modified font is supposed to support Vietnamese, which has accented glyphs take up a lot of space

#

wait... is the font size modifiable

cosmic oriole
#

Yes

patent kernel
#

Forgot I could try this mod out now so I put some Super Mario 256 font on it

#

Kinda sad it's slightly rised up (if you look at hands and discards)

#

The plus are barely visible lol

dull pecan
slow patrol
#

blank font = the ultimate challenge

#

"Blindness": All texts are blank spaces

#

you have to do the math on your own

cosmic oriole
#

I bet someone can naneinf with that

ripe vale
#

Not that it's a very hard thing to do, main way to get naneinf is baron/mime/joker retrigger things + a lot of red seal steel kings and cryptids, if you're going for naneinf you probably remember what all of them do and they aren't scaling, so no need to read their descriptions, textures of jokers and cards can tell you all you need

livid cobalt
#

somehow if i install this alone, the custom font works but when installing together with cryptid/talisman, it reverts back to default font. any idea?

i'm on 1.0 steamodded

cosmic oriole
#

Weird, works fine for me with those mods

livid cobalt
#

is this how it should look like for my Mods dir?

#

not sure if i should put CustomFont.lua and font.ttf inside a nested folder or not

#

if i remove Talisman, the custom font works, hmm

cosmic oriole
#

I put CustomFont in its own folder

#

Maybe it’s not loaded properly because it’s in the root folder?

#

Or the only other thing I could think of would be a Linux-specific issue

livid cobalt
#

let me try

#

oh wait, Talisman lovely patch payload override the font:

font = G.LANGUAGES['en-us'].font
cosmic oriole
#

Hmm

#

That would make sense

#

Not sure why nobody else ever noticed that; maybe it works fine if the language is set to en-us

#

Actually looking at the code, the font is already set to G.LANGUAGES['en-us'].font before the patch, so that wouldn’t cause the issue

livid cobalt
#

true

#

but it is definitely conflicting with Talisman tho

#

this works, if i have only Cryptid without Talisman

cosmic oriole
#

cryptid isn't loaded if you don't have Talisman

#

only the lovely patches are

#

CustomFont works fine even with a 1.0 modpack so I'm not sure what in Cryptid is causing this

livid cobalt
#

maybe if we can specify the loading order of mods, then if custom font is loaded last, then it would work ?

#

i've tried starting fresh a few times but not able to control the order

cosmic oriole
devout dove
#

Is there any reason why even after altering priority Custom Font still isn't loaded?

cosmic oriole
#

Sometimes LOVE doesn’t like the game directory

#

I have a patch that fixes this that I can send after I get back from vacation

devout dove
#

Is it in the mega modpack zip?

cosmic oriole
devout dove
#

👍 that works

opaque nacelle
#

does this tool have a github page? i'm trying to link it publicly to others

cosmic oriole
#

No

#

I plan to eventually merge it with Trance

gentle matrix
#

It’d be funny as hell if something like this was possible without mods (its perfect regardless)

civic sinew
#

i have a question

#

how do you make a ttf file?

gentle garnet
#

You download them on the net, unless you want to create your own font

civic sinew
#

ok so

#

i replaced the font.ttf

#

but when i launch balatro it's still the same ol font

#

even though i renamed the font file to "font.ttf"

gentle garnet
#

I have the same issue yesterday

#

Just try to reinstall it a few more times

civic sinew
#

ight

cosmic oriole
#

You might need the version bundled in Dimserene’s Modpack. Because there is one version that sometimes just doesn’t work (but I think it crashes when that happens iirc)

gentle garnet
#

I didn't modify that though

#

Only the size of fonts

cosmic oriole
#

I think you have the version that always works in that case

gentle garnet
#

I don't know, I used autumnmood's port

cosmic oriole
#

Yeah that one is good

#

Because I think there’s a version which moves to a temp file that’s accessible without nativefs, because otherwise it caused issues sometimes

fossil crater
#

is there a link to the currently working version with 1.0.0

#

one that always works

gentle garnet
cosmic oriole
#

Custom Fonts Mod [Deprecated]

fossil crater
#

What why

patent kernel
fossil crater
#

yeah makes sense

#

i will dissapear

cosmic oriole
#

forgot to explain why here but ye, I merged it with Trance and made it better

keen grove
#

I know it's essentially been a year but I thought I should ask
I can't find the version of trance that includes custom fonts
just thought I'd ask if anyone's got a link or something
thanks :D

slow patrol
#

use SMODS.Font