Hi there. I'm developing a game for windows that is using a custom font. However, on other people's PCs, it doesnt show up. Is there anyway I can import a TrueType font??
Hi there. I'm developing a game for windows that is using a custom font. However, on other people's PCs, it doesnt show up. Is there anyway I can import a TrueType font??
Check out Binary Data. You can include your fonts using this method.
Marv
458 TGF to CTF 2.5+ Examples and games
http://www.castles-of-britain.com/mmf2examples.htm
What you do is right click desktop -> new text file ,rename it to visual basic script (Script.vbs)
Add this in the new vbs file made ,now save close
Code:Dim WinFontDir Dim SrcFontDir WinFontDir = "C:\Windows\Fonts" SrcFontDir = "C:\Users\IBM\Desktop\Font\" Set objShell = CreateObject("Shell.Application") Set objFSO = CreateObject("Scripting.FileSystemObject") Set objSrc = objFSO.GetFolder(SrcFontDir) Set colFiles = objSrc.Files For each objFile in colFiles If Not objFSO.FileExists(WInFontDir + "\" + objFile.Name) Then WScript.Echo "Copying " + objFile.Name FONTS = &H14& Set objFontFolder = objShell.Namespace(FONTS) objFontFolder.CopyHere objFile.Path End if Next
then ...Create a folder call it (Fonts) put that vbs file in the folder.
together with your font ,also look at the code and change the top directory's that will suit your computer.
in this case these two.
WinFontDir = "C:\Windows\Fonts"
SrcFontDir = "C:\Users\IBM\Desktop\Font\"
or do this instead download the attach extract here... to desktop not folder-ed then open the fusion file.
then use this method with Nivrams extract binary,
sorry ..do not put the vbs file or anything in the Fonts folder you made. just the (Font.ttf)
execute vbs from fusion make shore the event is path to the vbs file you made,
Make your text active objects. They'll be more like pictures, and in this, it will look the same for every system.
lolhahaha or lololol... or you can just do what lol jjsecord said.
Yep,.that's what I do for all special text. Convert to active objects.
This will install any font on windows and silent to.
For introductory purposes
extract the zip file in desktop and just change the path in vbs file below
CollectFonts
InstallFonts "C:\Users\IBM\Desktop\fonts\" ' insert path here to font folder
Text Blitter is my go-to extension for text --- works on every computer. The only caveat is that your characters will be monospaced. Other than that limitation, it's a wonderful extension.