LuaGameScript.font_prototypes

Post Reply
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

LuaGameScript.font_prototypes

Post by eradicator »

Reading the available fonts would greatly help during mod gui development.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Bilka
Factorio Staff
Factorio Staff
Posts: 3127
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: LuaGameScript.font_prototypes

Post by Bilka »

Do you need specifically all font prototypes inside the mod, or would the addition of the fonts to the prototype explorer also help with mod gui development?
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: LuaGameScript.font_prototypes

Post by eradicator »

Bilka wrote:
Sat Dec 12, 2020 2:32 pm
Do you need specifically all font prototypes inside the mod, or would the addition of the fonts to the prototype explorer also help with mod gui development?
I would like to generate a bunch of design previews with font variations to see what looks best, so i need them on the lua side too. If including the full prototypes it too much work a simple list like LuaGameScript.styles might also work (though then i can't read the font sizes).
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: LuaGameScript.font_prototypes

Post by Rseding91 »

Ok; I added both. LuaFontPrototype and fonts to the prototype explorer GUI.
If you want to get ahold of me I'm almost always on Discord.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: LuaGameScript.font_prototypes

Post by eradicator »

Thank you very much.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Implemented mod requests”