![]() jar.įollow the steps listed above to upload the font.īecause we are essentially uploading assets, it could be very helpful if we somehow kept a database of the assets people have uploaded. jar, select a font and size, hit generate. Place in a folder you do not mind getting cluttered. TextFrame.Position = UDim2.new(.5, .Offset/2. TextFrame = FontLibrary:DrawText("The quick brown fox jumps over the lazy dog.", FontLibrary:GetFont("CenturyGothic", 24), 1,, Color3.new(1, 1, 1)) TextFrame = FontLibrary:DrawText("abcdefghijklmnopqrstuvwxyz", FontLibrary:GetFont("ComicSansMS", 24), 1,, Color3.new(1, 1, 1)) Local textFrame = FontLibrary:DrawText("ABCDEFGHIJKLMNOPQRSTUVWXYZ", FontLibrary:GetFont("Papyrus", 24), 1,, Color3.new(1, 1, 1)) Local FontLibrary = require(script.Parent:WaitForChild("FontLibrary")) They are officially documented within the ModuleScript which can be found here. They are: Papyrus, Minecraftia, Calibri, ComicSansMS, CenturyGothic. I have created five fonts (each in size 12 and 24) with this system so far for testing purposes and have packaged them into the module with the LoadDefaultFonts method. There are five methods and two fields to the module, listed here: FontLibrary:GetFont(fontName, fontSize)įontLibrary:DrawText(text, font, scale, xAlign, color) The LoadFont module returns the created font but also stores it in LoadFont.Fonts, so after a script has loaded it once on that peer, any other script can access that same font using (or use the GetFont(FontName, FontSize) method). Local yourFont = FontLibrary:LoadFont(yourImageID)įrom there, you can draw text using your font like so: local textFrame = FontLibrary:DrawText("Some Text", yourFont, 1,, Color3.new(1, 1, 1)) Now you can take the ID of the image and load it into the FontLibrary module like this: local FontLibrary = require() Then, configure your image and copy the JSON data into the description. png file as a ROBLOX decal, and find its corresponding ROBLOX image (subtract 1 from the ID). ![]() ![]() The way it works, is the generator will create a. My system uses the MarketPlaceService to view the Description property of ROBLOX Images.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |