UO DiNGSFont v6 (11. Septemper 2012)

Previous topic - Next topic

msx

Danke für das Update.  :nw:

WPShadow

Das Teil ist wirklich spitzenklasse!  :good:
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

blastar

Da es keine Bug-Rückmeldungen gab und alle Wünsche (soweit für mich machbar) beachtet wurden nenne ich die aktuelle version v5 einfach mal FINAL... sollte es noch Kleinigkeiten geben dann fixe ich die natürlich noch!

Kitty Hello, wenn Du magst kannste es gern noch einmal ausgiebig testen und bei GLB mit reinpacken! Wenn Du noch Änderungsbedarf siehst dann melde dich...

Kitty Hello

So, hab's mir mal agesehen.
Meine Güte, ist das Teil super!

Damit ich's reinpacken kann, müsste man drüber nachdenken, wohin es die Sample-Fonts usw. speicher kann, weil unter Win7 ja keiner was in C:\Programme ablegen kann. Ich könnte das Tool in die Samples packen. Aber dann meint noch einer, das wäre mit GLB gemacht. Was es ja nicht ist *heul* (Ich muss unbedingt den native-GUI port fertig machen).

Ich werd's so machen - ich bau in mein Font-Tool einen Link zu diesem Thread ein, OK?


doimus

Fantastic stuff! Gradient fonts rock in all their 16-bit awesomeness!  :booze:

Now all I need is source of some wacky TTFs.

Here's the first one I tried. 8)


[attachment deleted by admin]

blastar

#50
Hmm, also das mit den unterschiedlichen Windows-Versionen und den Zugriffsrechten hatte mich auch schon beschäftigt aber da ich es portabel halten wollte mich dann nicht weiter drum gekümmert - da Du jetzt ein problem darin siehst hätte ich folgende Lösung:

die angehängte Version hat alles "onBoard", diese "nicht portable Version" nutzt eine ähnliche Funktion wie  PLATFORMINFO$("DOCUMENTS")  und greift auf den Resourcen-order unter Dokuments zu, existiert dieser nicht wird er angelegt und alle Dateien dahin entpackt (zb beim ersten start). functioniert damit also ähnlich wie GLB beim ersten Start mit dem "Samples"-Ordner... Besser?

[attachment deleted by admin]

Slydog

I'm responding in English as I don't speak German.
And the Google Translate didn't quite make it clear what you are discussing.

But if you are looking for user's document folder in Windows, here's the code I use from Visual Basic (just common APIs):
(It's pretty old code, but it still works for at least XP, if not a Google search for the new equivalent should be easy)

Code (glbasic) Select
Public Enum enFolderSpecial
    enDESKTOP = &H0
    enINTERNET = &H1
    enPROGRAMS = &H2                  ' Contains the user's program groups (which are also file system directories). A common path is C:\WINNT\Profiles\username\Start Menu\Programs.
    enCONTROLS = &H3
    enPRINTERS = &H4
    enPERSONAL = &H5                  ' Serves as a common repository for documents. A common path is C:\WINNT\Profiles\username\My Documents.
    enFAVORITES = &H6                 ' Serves as a common repository for the user's favorite items. A common path is C:\WINNT\Profiles\username\Favorites.
    enSTARTUP = &H7                   ' Corresponds to the user's Startup program group. The system starts these programs whenever any user logs onto Windows NT or starts Windows® 95. A common path is C:\WINNT\Profiles\username\Start Menu\Programs\Startup.
    enRECENT = &H8                    ' Contains the user's most recently used documents. A common path is C:\WINNT\Profiles\username\Recent. To create a shortcut in this folder, use SHAddToRecentDocs. In addition to creating the shortcut, this function updates the shell's list of recent documents and adds the shortcut to the Documents submenu of the Start menu.
    enSENDTO = &H9                    ' Contains Send To menu items. A common path is c:\WINNT\Profiles\username\SendTo.
    enBITBUCKET = &HA                 ' Virtual folder containing the objects in the user's Recycle Bin.
    enSTARTMENU = &HB                 ' Containing Start menu items. A common path is c:\WINNT\Profiles\username\Start Menu.
    enDESKTOPDIRECTORY = &H10         ' Contains files and folders that appear on the desktop for all users. A common path is C:\WINNT\Profiles\All Users\Desktop. Valid only for Windows NT systems.
    enDRIVES = &H11
    enNETWORK = &H12
    enNETHOOD = &H13
    enFONTS = &H14                    ' Virtual folder containing fonts. A common path is C:\WINNT\Fonts.
    enTEMPLATES = &H15                ' Serves as a common repository for document templates.
    enCOMMON_STARTMENU = &H16         ' Contains the programs and folders that appear on the Start menu for all users. A common path is C:\WINNT\Profiles\All Users\Start Menu. Valid only for Windows NT systems.
    enCOMMON_PROGRAMS = &H17          ' Contains the directories for the common program groups that appear on the Start menu for all users. A common path is c:\WINNT\Profiles\All Users\Start Menu\Programs. Valid only for Windows NT systems.
    enCOMMON_STARTUP = &H18           ' Contains the programs that appear in the Startup folder for all users. A common path is C:\WINNT\Profiles\All Users\Start Menu\Programs\Startup. Valid only for Windows NT systems.
    enCOMMON_DESKTOPDIRECTORY = &H19  ' Used to physically store file objects on the desktop (not to be confused with the desktop folder itself). A common path is C:\WINNT\Profiles\username\Desktop
    enAPPDATA = &H1A                  ' Serves as a common repository for application-specific data. A common path is C:\WINNT\Profiles\username\Application Data.
    enPRINTHOOD = &H1B
    enLOCAL_APPDATA = &H1C            ' Version 5.0. File system directory that serves as a data repository for local (non-roaming) applications. A common path is C:\WINNT\Profiles\username\Local Settings\Application Data.
    enALTSTARTUP = &H1D               ' Corresponds to the user's nonlocalized Startup program group. (All Users\Startup?)
    enCOMMON_ALTSTARTUP = &H1E        ' Corresponds to the nonlocalized Startup program group for all users. Valid only for Windows NT systems.
    enCOMMON_FAVORITES = &H1F         ' Serves as a common repository for all users' favorite items. Valid only for Windows NT systems.
    enINTERNET_CACHE = &H20
    enCOOKIES = &H21                  ' Serves as a common repository for Internet cookies. A common path is C:\WINNT\Profiles\username\Cookies.
    enHISTORY = &H22                  ' Serves as a common repository for Internet history items.
    enCOMMON_APPDATA = &H23           ' Version 5.0. Application data for all users. A common path is C:\WINNT\Profiles\All Users\Application Data.
    enWINDOWS = &H24                  ' Version 5.0. Windows directory or SYSROOT. This corresponds to the %windir% or %SYSTEMROOT% environment variables. A common path is C:\WINNT.
    enSYSTEM = &H25                   ' Version 5.0. System folder. A common path is C:\WINNT\SYSTEM32.
    enPROGRAM_FILES = &H26            ' Version 5.0. Program Files folder. A common path is C:\Program Files.
    enPROGRAM_FILES_COMMON = &H2B     ' Version 5.0. A folder for components that are shared across applications. A common path is C:\Program Files\Common. Valid only for Windows NT and Windows® 2000 systems.
    enCOMMON_TEMPLATES = &H2D         ' Contains the templates that are available to all users. A common path is C:\WINNT\Profiles\All Users\Templates. Valid only for Windows NT systems.
    enCOMMON_DOCUMENTS = &H2E         ' Contains documents that are common to all users. A common path is C:\WINNT\Profiles\All Users\Documents. Valid only for Windows NT systems.
End Enum

Private Declare Function SHGetSpecialFolderPath Lib "shell32.dll" Alias "SHGetSpecialFolderPathA" (ByVal hWnd As Long, ByVal lpszPath As String, ByVal nFolder As Integer, ByVal fCreate As Boolean) As Boolean

Public Function File_FolderGet_Special(enFolderID As enFolderSpecial) As String
   Dim bReturn As Long
   Dim sBuffer As String
   File_FolderGet_Special = ""
   sBuffer = Space(255)
   bReturn = SHGetSpecialFolderPath(0, sBuffer, enFolderID, False)
   sBuffer = Left(sBuffer, InStr(sBuffer, Chr(0)) - 1)
   File_FolderGet_Special = sBuffer
End Function


Usage:
Code (glbasic) Select
Dim documents_folder As String
documents_folder = File_FolderGet_Special(enPERSONAL)
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Kitty Hello

you can make a GLBasic console program (x-platform) and return PLATFORMINFO$("APPDATA").
Then, on the start of the program copy all required media in a subdirectory of that path.

Make this the default directory for saving brushes and font styles.
Also, the GLBasic IDE passes the directory path as the first argument to the DingsFont. If that is given, please use that directory for leading/saving .glfont2 and smalfont.png files.

AWESOME!

Crivens

Is it possible to extract the test image with full transparency? It's mainly because I muck around with the sizes of the files and they don't really work with the GLB font command, so I just put together full word images (I don't use much text so not a problem).

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Slydog

Using Paint.NET (I'm cheap!), I load the DiNGSFont image and use the 'Adjustments' -> 'Black and Alpha+' to remove the background and make it transparent.  (Depending on your text colour, you may need to use the 'Invert' option box).

This pluggin can be found here (doesn't come with PDN):
http://forums.getpaint.net/index.php?s=b8bdd3b8ae5c93565674f1a26f95060e&showtopic=13837



Also, I just found a new font tool:
http://www.nubik.com/SpriteFont/

It has tons of options and effects, plus allows saving with transparency.
It can also save a text file with each character's location for looking up using a font routine.
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

ampos

AMAZING  :nw: :nw: :nw: :nw: :nw: :nw: :nw: :nw:

What about adding a alpha value to "outilnes", so we can have (mainly the 2nd outline) a 50% transparency, making the outline look as a glow.

And if you have more time, you can remove the outilne buttons and replace with

OUTLINE SIZE (1, 2, 3,... pixels)
OUTLINE FADE (0=no fade, so full opace, 50=50% transparency, so in a outline 2 pixels wide, you have first outline opace and 2nd pixel outilne at 50%)

Albert

Wow, i will test it in Win7!

D2O

#57
Kann es sein das der Download nicht mehr geht?
Hmm, der download scheint nur mit dem FF v8 nicht mehr zu gehen. Hier wird immer nur eine Index.php zum download angegeben.
Mit Chrome geht es.
I7 2600K; 8 GB RAM ; Win10 Pro x64 | NVidia GTX 750 TI 2048MB ; Realtec OnBoard Sound;
Lenovo ThinkPad T400: XP Pro
GLB Premium-immer Aktuell

Schranz0r

Müssen wohl auf einen Fix von SMF warten.
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

BdR

#59
Wow, UO_DiNGSFonts is a huge improvement over the default DiNGSFont! :good: I've just changed the fonts in my game using this program and especially in high resolution it looks so much better now, with proper outlining and transparancy. I'll include the updated fonts in the next update of Snake Slider.

Until now, I used DiNGSFont and I made the font transparant by editing in Paint Shop Pro. Then I also replaced some characters by hand because I needed some non-standard characters, like ą ő ł etc. This took A LOT of time editing by hand, and the result still looked a little weird because of the transparacy editing.

There is one thing in UO_DiNGSFonts that could easily be improved thought I think. And that is also saving the ReMap's to the glfont2 file. You cannot select special characters in the ReMap function, I mean characters like ą ć ę ł ń ő ś ű ź ż etc. These are the characters I need and then I could change them manually in the glfont2 file.

Still, with the current remap function I can at least select characters that resemble the ones I need, and then I only have to edit them a little bit to add the proper accents (as opposed to doing everything by hand) so this saved a lot of time plus the end result looks better :nw: Thank you for making this program.