GLBasic forum

Other languages => GLBasic - de => Topic started by: blastar on 2011-Jun-04

Title: UO DiNGSFont v6 (11. Septemper 2012)
Post by: blastar on 2011-Jun-04
Da der bei GLBasic mitgelieferte Zeichensatzgenerator (Tools\DiNGSFont.exe) leider nicht mit echtem Alpha-Werten umgehen kann (obwohl von GLBasic unterstützt) habe ich mir schon vor einiger zeit ein eigenes Tool geschrieben -  das habe ich jetzt etwas aufgeräumt, an Dingsfont angepasst und kompatibel gemacht:

vorerst zwar nur für windows - aber eine version für OSX ist in Planung - sobald die Windows-version zufriedenstellend ist werde ich schauen wie weit sich das umsetzen lässt - erste Tests sehen gut aus! :D

Anderungen zum ursprünglichen Dingsfont:
- kann 'DiNGSFont.exe' ersetzen (übernimmt den übergebenen pfad):
- Fullscreen & zoombar
- vollen Alpha Support -> ALPHAMODE -.999
- Schatten in alle Richtungen mit Alpha
- Farbverlauf für Font, Outline1 & Outline2
- Texture für Font
- Textfeld zum testen des Fonts (mit und ohne kerning)

v2:
- komplett neu aufgesetzt
- einfaches Licht bzw Kanten eingefügt.
- Gradient nun auch für Outline1 und Outline2
- Gradient lässt sich nun über einen (einfachen Editor) bearbeiten
- 4 Gradient-styles (linear, circular, boxed, conical)
- Texture für Font
- Alpha-support für font
- 2 verschiedene Schatten-modi (Clean und Blur)
- einfaches farbiges Licht (Kanten)
- abspeichern und laden von Styles (ice.glfont2 & bend.glfont2 gebe ich mal mit... so als beispiel  ;) ) - Texture wird dabei noch nicht unterstützt...

v3:
- Unterstützung für Charsets
- CHR$169 (Copyright) auf 127 gemapt
- Photoshop-style Gradient-editor + updated Coloreditor (man kann einzelnde Verläufe exportieren und wieder laden)
- diverse kleine bugs gefixt

v4:
- Check für das richtige Seitenverhältnis bei Fonts mit 256 zeichen
- diverse Fixes
- alle Zeichen können frei abgeschalten und neu gemappt werden (Maus auf das Zeichen und rechte Mausetaste)
- Cleartype-Antialiasing (WinXP oder höher ist Voraussetzung) hinzugefügt - bringt bessere Ergebnisse aber verwischt kleinere Fonts stärker -> ausprobieren was besser ausschaut!
- beim speichern und laden von Styles (*.glfont2) wird nun auch auf die texture (wenn genutzt) als *.texture im gleichen verzeichnis zugegriffen (es handelt sich dabei um ein *.png)
- das Tool greift nun auf den Unterordner 'DF_RESRC' (=DingsFont_Resource) zu
- einige neue Styles (Blood oder Dark Chrome schauen gut aus), Farbverläufe (diese werden bei Start des GradienEditors aufgelistet) und Texturen hinzugefügt
- im ColorEditor gibt es ein neues aber nicht dokumentiertes Feature - einfach mit der Mause auf eine Farbe auf dem Screen und die rechte Maustaste drücken.

v5:
- "offizielles" GLB-Icon
- neuer About-Screen mit GLB-logo und link zu diesem Thread 8)
- alle möglichen Sicherheitsabfragen eingefügt um den Verlust von geänderten Styles zu vermeiden (new, quit, load...)
- speichern der Fonts nun auch als *.bmp mit 24bit oder 8bit
- die "niedrigste" Farbe ist RGB(4, 4, 4) und wird automatisch gesetzt - damit kann auch ein schwarzer Font (=RGB(4,4,4)) auf einem schwarzen Hintergrund (=RGB(0,0,0)) einen schwarzen Schatten (=RGB(4,4,4)) werfen und GLB versteht das! ;-)
- pixelgenaue Abfrage des größten Zeichen und daraus Berechnung der Imagehöhe -> kleinere Images
- Positionierung der Zeichen erfolgt nun pixelgenau links/oben abhängig vom größten Zeichen

v6:
- mehrsprachig (beim starten wird immer eine interne englische Sprachdatei geladen, einfach eine *.lng unter DF_LANG\ kopieren &  editieren, diese wird später beim starten automatisch eingebunden)
- das TestFont-Bild lässt sich jetzt speichern (Rechtsklick -> Save)
- neue Remap-Funktion, im neuen Requester lassen sich nun Zeichen direkt eingeben oder per [CTRL-V] einfügen (weil unicode funktioniert dann auch mit CHIN, JAP, THAI, URDU usw...)
- die geänderte Zeichentabelle lässt sich nun abspeichern

[attachment deleted by admin]
Title: Re: UO DiNGSFont
Post by: spicypixel on 2011-Jun-04
This looks really useful, Good Job! ;)
Title: Re: UO DiNGSFont
Post by: Kitty Hello on 2011-Jun-04
Wow, genial! Darf ich das mitliefern?
Title: Re: UO DiNGSFont
Post by: blastar on 2011-Jun-04
Quote from: Kitty Hello on 2011-Jun-04
Wow, genial! Darf ich das mitliefern?

langsam, ein ein paar tage brauche noch, dann aber gern... einige ideen habe ich noch!  =D
Title: Re: UO DiNGSFont
Post by: Schranz0r on 2011-Jun-05
<3 you man ! ;D
Title: Re: UO DiNGSFont
Post by: trucidare on 2011-Jun-05
Dürft ich den source code haben? ein MacPort bräuchte ich für die MacIDE
Title: Re: UO DiNGSFont
Post by: Schranz0r on 2011-Jun-05
Bald kann man sowas in GLB schreiben :D
Aber psssssssssssssst ;)

Für Windoof müsste es bald schon gehen ;)
Title: Re: UO DiNGSFont
Post by: spicypixel on 2011-Jun-05
Im using Google Translate to try to follow this post :) I'd be interested to see what features are going to be added too. I love the gradient option.

Possible additions

Just a few ideas :) Excellent work though Blastar ;)
Title: Re: UO DiNGSFont
Post by: trucidare on 2011-Jun-05
ja pssscht gehaaaaaaaaym :D
GTK ist auch simple rein zu bekommen nur viel schreibkram
Title: Re: UO DiNGSFont
Post by: blastar on 2011-Jun-05
Quote from: trucidare on 2011-Jun-05
Dürft ich den source code haben? ein MacPort bräuchte ich für die MacIDE

MacIDE? habe ich was verpasst? :-[

das programm ist NICHT mit GLB geschrieben sondern mit PB, da ist einiges an API drin (vor allem der fontrequester und das laden der fonts) und da wird es schwer was zu porten... aber PB gibt es auch für OSX, mal schauen wie weit ich da was übertragen kann...
Title: Re: UO DiNGSFont
Post by: bigsofty on 2011-Jun-05
This looks really well done, thank you!  :booze:
Title: Re: UO DiNGSFont
Post by: Moru on 2011-Jun-05
Very nice, has everything I was missing. Thanks!
Title: Re: UO DiNGSFont
Post by: blastar on 2011-Jun-05
Quote from: spicypixel on 2011-Jun-05
Im using Google Translate to try to follow this post :) I'd be interested to see what features are going to be added too. I love the gradient option.
...

multicolor-gradient coming soon - same font, different colors and gradients.  ;)
"light"-feature coming soon  =D

:bed:

[attachment deleted by admin]
Title: Re: UO DiNGSFont
Post by: spicypixel on 2011-Jun-06
Quote from: blastar on 2011-Jun-05
Quote from: spicypixel on 2011-Jun-05
Im using Google Translate to try to follow this post :) I'd be interested to see what features are going to be added too. I love the gradient option.
...

multicolor-gradient coming soon - same font, different colors and gradients.  ;)
"light"-feature coming soon  =D

:bed:

Great work with the lighting, I was importing my font into Photoshop earlier to create a bevel for lighting. However.... yours is better as it ignores the outline without me tinkering with colour selecting love it!

Sleep well ;)
Title: Re: UO DiNGSFont
Post by: blastar on 2011-Jun-11
coming soon: texturing +  outline gradient + alpha support = textured glass! :)



[attachment deleted by admin]
Title: Re: UO DiNGSFont
Post by: D2O on 2011-Jun-11
Danke blastar,
das ist ein echt gutes Tool  :happy:
Title: Re: UO DiNGSFont
Post by: spicypixel on 2011-Jun-12
This really is becoming quite an indispensible tool, awesome work! I see my suggestion of texturing has come into fruition or had you already thought of it? ;)
Title: Re: UO DiNGSFont
Post by: blastar on 2011-Jun-12
Quote from: spicypixel on 2011-Jun-12
This really is becoming quite an indispensible tool, awesome work! I see my suggestion of texturing has come into fruition or had you already thought of it? ;)

i added the texture-feature because of your suggestion, easier to add than expected =D - more features like this is easy to add but i want to keep the tool as simple and intuitive as possible...

please check my new version (v2), now you can save/load and share your styles.  8)

Title: Re: UO DiNGSFont v2 (11. Juni 2011)
Post by: S.O.P.M. on 2011-Jun-12
One thing that will be very unimportant for most of you but important for me because of my computer, this tool should use less CPU power. When I have this tool open, my CPU-fan is crying out loud by maximum usage rate and the point is that it could break soon, I know that, it's not all right :/
Title: Re: UO DiNGSFont v2 (11. Juni 2011)
Post by: kanonet on 2011-Jun-12
Quote from: S.O.P.M. on 2011-Jun-12
One thing that will be very unimportant for most of you but important for me because of my computer, this tool should use less CPU power. When I have this tool open, my CPU-fan is crying out loud by maximum usage rate and the point is that it could break soon, I know that, it's not all right :/
That is new in v2, it runs one core at max speed, this really needs to get fixed. No Problems in v1.

Very nice Tool btw. :good:
Title: Re: UO DiNGSFont v2 (11. Juni 2011)
Post by: D2O on 2011-Jun-12
Hi blastar, v2 ist richtig Top :)
Was die CPU last angeht, die liegt bei mir so um die >50%

Wunsch  :-[
Das Style speichern und laden geht gut,
aber ist es hier auch möglich den benutzten font zu speicher und wieder zu laden?
Wenn ich meinen Style mit dem Font "Zanzibar" speichere, das Programm schliese und wieder öffne und
dann meinfont.glfont2 lade, dann wird die Standartschrift "18thCentury" wieder genutzt.
Title: Re: UO DiNGSFont v2 (11. Juni 2011)
Post by: blastar on 2011-Jun-12
Quote from: kanonet on 2011-Jun-12
Quote from: S.O.P.M. on 2011-Jun-12
One thing that will be very unimportant for most of you but important for me because of my computer, this tool should use less CPU power. When I have this tool open, my CPU-fan is crying out loud by maximum usage rate and the point is that it could break soon, I know that, it's not all right :/
That is new in v2, it runs one core at max speed, this really needs to get fixed. No Problems in v1.

Very nice Tool btw. :good:

you are right, I forgot to disable debug  :-[ ... now fixed!

Quote from: D2O on 2011-Jun-12
Hi blastar, v2 ist richtig Top :)
Was die CPU last angeht, die liegt bei mir so um die >50%

Wunsch  :-[
Das Style speichern und laden geht gut,
aber ist es hier auch möglich den benutzten font zu speicher und wieder zu laden?
Wenn ich meinen Style mit dem Font "Zanzibar" speichere, das Programm schliese und wieder öffne und
dann meinfont.glfont2 lade, dann wird die Standartschrift "18thCentury" wieder genutzt.

kommt mit der nächsten version!

update: ich habe es mal schnell eingebaut - fontname und fontgröße werden nun ebenfalls in der *.glfont2 hinterlegt und beim laden wiederhergestellt - sollte der font auf dme rechner nicht vorhanden sein wird der erste verfügbare genommen (bei dir wohl "18thCentury").
Title: Re: UO DiNGSFont
Post by: blastar on 2011-Jun-12
Quote from: trucidare on 2011-Jun-05
Dürft ich den source code haben? ein MacPort bräuchte ich für die MacIDE

hier ein screenshot vom ersten osx-port, benötigt zwar noch ein paar anpassungen aber funktioniert genauso gut!  :D

[attachment deleted by admin]
Title: Re: UO DiNGSFont v2 (11. Juni 2011)
Post by: Crivens on 2011-Jun-13
Very nice! Does it handle the extended set like the original (I only use it to get the copyright symbol, but it is useful)?

Cheers
Title: Re: UO DiNGSFont v2 (11. Juni 2011)
Post by: spicypixel on 2011-Jun-13
When you load a texture although the mask is *.png it doesn't show any png's even when you're on a folder with them in. You have to set the mask to *.* to view the png files???

It would be really good to remember the style and texture load/save directories seperately to save swapping about, not essential but could be handy for faster work production.

Nice work again Blastar ;)
Title: Re: UO DiNGSFont v2 (11. Juni 2011)
Post by: blastar on 2011-Jun-13
Quote from: Crivens on 2011-Jun-13
Very nice! Does it handle the extended set like the original (I only use it to get the copyright symbol, but it is useful)?
never thought about it because never used, was simple to add :) ... comes with next version!

Quote from: spicypixel on 2011-Jun-13
When you load a texture although the mask is *.png it doesn't show any png's even when you're on a folder with them in. You have to set the mask to *.* to view the png files???
a small typo, i forgot to add png to filter :'( ... I will fix it with next update!

Quote from: spicypixel on 2011-Jun-13
It would be really good to remember the style and texture load/save directories seperately to save swapping about, not essential but could be handy for faster work production.
i will think about it, maybe i will store last path for save/load image, texture & style?!


[attachment deleted by admin]
Title: Re: UO DiNGSFont v2 (11. Juni 2011)
Post by: Slydog on 2011-Jun-13
Quote from: Crivens on Today at 09:37:37
QuoteVery nice! Does it handle the extended set like the original (I only use it to get the copyright symbol, but it is useful)?

I see the latest screen shot shows the full character set, including the copyright symbol.
But to just add a copyright symbol to your font set you have to include 127 extra symbols you don't need, making either the font file larger than it needs to be, or the individual characters smaller than you may have intended.

What would be nice is a character substitution.  In this case for example, you could substitute the tilde character ('~') for the copyright character.  It shouldn't be difficult to implement if anybody thinks this may be useful, just an idea.

Nice tool btw!  Where were you 6 months ago! ha!  I managed to figure out how to do fancy font effects using Paint.Net back then, but for a graphics noob, it wasn't very easy!
Title: Re: UO DiNGSFont v2 (11. Juni 2011)
Post by: trucidare on 2011-Jun-14
Yeah sehr gut !! das bringt die ide unabhängig von anderen font making tools - weiter so
Title: Re: UO DiNGSFont v2 (11. Juni 2011)
Post by: Crivens on 2011-Jun-14
QuoteWhat would be nice is a character substitution.  In this case for example, you could substitute the tilde character ('~') for the copyright character
Ooh, yeah good idea. Being able to swap any character for another would be brilliant, and as you said keep it to a smaller set.

Cheers
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: blastar on 2011-Jun-18
Ich habe mal eine kleines Update (v3) hochgeladen (im ersten Post), einige kleine fixes & Verbesserungen - keine großartigen Änderungen!
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: msx on 2011-Jun-19
Thank you very much  :nw:
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: WPShadow on 2011-Jun-19
Geniales Teil, habe es heute zum ersten Mal ausprobiert!

Das ist wirklich klasse!!! Danke für die Mühe!
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: Schranz0r on 2011-Jun-20
Sag ich nur eins zu....:

FREAK! :D
Sehr Geil!
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: matchy on 2011-Jun-20
 :booze: :coke: :coke:
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: Kitty Hello on 2011-Jun-20
Super!!

Eine coole Erweiterung wäre es, die oberen 16 characters nochmal mit jeweils anderem Font+Zeichen zu überschreiben. Damit könnte man z.B. Herzerl aus Windings nehmen für CHR$(8)
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: blastar on 2011-Jun-20
Quote from: Kitty Hello on 2011-Jun-20Eine coole Erweiterung wäre es, die oberen 16 characters nochmal mit jeweils anderem Font+Zeichen zu überschreiben. Damit könnte man z.B. Herzerl aus Windings nehmen für CHR$(8)

mit der nächsten version kann man die einzelnen zeichen innerhalb eines fonts frei mappen - aber das auch noch mit einem anderen Fonts zu machen? :S
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: Kitty Hello on 2011-Jun-20
Aber die Idee ist gut, oder?
Wie wäre es mit einem Rich-Text editor? Overkill?
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: blastar on 2011-Jun-20
bisher nutzt da tool einen einzelnen font der im 16*8 oder 16*16 raster gesetzt wird. Mit Richtext wäre zwar mehr möglich aber erfordert einen komplett neuen ansatz und ich habe auch im moment keine ahnung wie man sowas einfach halten und handhaben will... denn das war der ursprüngliche ansatz... und für OSX wollte ich bei gelegenheit auch noch porten... OSX & richtext? :S
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: trucidare on 2011-Jun-20
bei osx ist doch sogar der editor richtext - also das dürfte kein problem sein.
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: WPShadow on 2011-Jun-20
Klasse wäre es, wenn man wirklich einzelne "Zeichnungen" von Buchstaben einfügen könnte.

Klingt jetzt vielleicht blöd, aber dann könnte man seine eigene Schriftart zeichnen!

Ich denke da z.B. an SciFi - Spiele, bei denen man eine auserirdische Sprache abbilden will. Dann könnte man Zeichen für Zeichen die einzelnen Buchstaben entschlüsseln!  :good:
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: Kitty Hello on 2011-Jun-21
http://www.omniglot.com/writing/sga.htm (http://www.omniglot.com/writing/sga.htm) - gibt's als TTF.
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: WPShadow on 2011-Jun-21
Genau an sowas hätte ich gedacht!  =D

[EDIT]

Hier habe ich sogar einen Alien - Font - Generator gefunden!

http://www.alphabetsynthesis.com/ (http://www.alphabetsynthesis.com/)
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: msx on 2011-Jun-21
I have problems with some fonts choosing the option "256 Char." Texts are incomprehensible.  :(
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: mentalthink on 2011-Jun-23
Dank sehr nützlich

Iván J
Title: Re: UO DiNGSFont v3 (18. Juni 2011)
Post by: blastar on 2011-Jun-24
128 Chars: ImageHeight =< ImageWidth
256 Chars: ImageHeight > ImageWidth, i added a check for this in v4.
Title: Re: UO DiNGSFont v4 (24. Juni 2011)
Post by: msx on 2011-Jun-27
Danke für das Update.  :nw:
Title: Re: UO DiNGSFont v4 (24. Juni 2011)
Post by: WPShadow on 2011-Jul-01
Das Teil ist wirklich spitzenklasse!  :good:
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: blastar on 2011-Jul-14
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...
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: Kitty Hello on 2011-Jul-14
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?

Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: doimus on 2011-Jul-14
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]
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: blastar on 2011-Jul-14
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]
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: Slydog on 2011-Jul-14
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)
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: Kitty Hello on 2011-Jul-14
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!
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: Crivens on 2011-Aug-12
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
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: Slydog on 2011-Aug-12
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 (http://forums.getpaint.net/index.php?s=b8bdd3b8ae5c93565674f1a26f95060e&showtopic=13837)



Also, I just found a new font tool:
http://www.nubik.com/SpriteFont/ (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.
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: ampos on 2011-Oct-02
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%)
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: Albert on 2011-Oct-02
Wow, i will test it in Win7!
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: D2O on 2011-Nov-11
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.
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: Schranz0r on 2011-Nov-14
Müssen wohl auf einen Fix von SMF warten.
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: BdR on 2012-Feb-29
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.
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: Crivens on 2012-Feb-29
Yeah it is fantastic. Seriously should replace (or at least be another option) be the font link inside the IDE if you ask me. I'm a serious fan of putting *everything* in the IDE. Anyone remember DIV? :)

Cheers
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: Schranz0r on 2012-Mar-02
Quote from: Crivens on 2012-Feb-29
Anyone remember DIV? :)

The gameprograming for DOS?

DIV Gamemaker 2000? :)
If you mean this, my answer is YES :D
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: Crivens on 2012-Mar-02
Yes, although a couple of years ago there was a compiler that worked almost 100% to allow the games to work on XP+. All your old stuff working in newer than a Win98 setup! Used to love that language!

Cheers
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: Schranz0r on 2012-Mar-02
It was more scripting... :P
But i liked it, too!
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: Poetronic on 2012-Jul-22
Thank you blastar, very useful application!  :nw: Will use it in my Breakout-clone  =D
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: Marmor on 2012-Aug-10
THX a lot .

i have  dumb idea : is it possible to save the preview Render as bmp/png ?
so we can use this for sprites ?
Title: UO DiNGSFont v5 (14. Juli 2011)
Post by: Crivens on 2012-Aug-11
That's spooky. I asked the exact same thing pretty much a year ago tomorrow. Look back in this thread for 12Aug11

Cheers
Title: Re: UO DiNGSFont v5 (14. Juli 2011)
Post by: Marmor on 2012-Aug-11
yea cool Crivens ! now blastar cant ignore us  :D

or i'll turn into BERT THE BARARIAN  :D
Title: Re: UO DiNGSFont v6 (11. Septemper 2012)
Post by: blastar on 2012-Sep-12
updated with new load/save-features, multilanguage (plaese share your translations) and some kind of unicode-support!  :)
Title: Re: UO DiNGSFont v6 (11. Septemper 2012)
Post by: bigsofty on 2012-Sep-12
Wow, this looks great!  :nw:
Title: Re: UO DiNGSFont v6 (11. Septemper 2012)
Post by: mentalthink on 2012-Sep-12
Viele Danke, für das Update!!! :nw: :nw:
Title: Re: UO DiNGSFont v6 (11. Septemper 2012)
Post by: blastar on 2012-Sep-12
an small example: textured font with alpha:164, gradient ouline, simple light with blurred transparent shadow... unicode!  =D

水 ; chinese
ણી ; gujarati
מ ; hebrew
नी ; hindi
물 ; korean
ب ; persian
ண ; tamil
రు ; telugu
น้ ; thai
ن ; urdu


[attachment deleted by admin]
Title: Re: UO DiNGSFont v6 (11. Septemper 2012)
Post by: D2O on 2012-Sep-13
Danke  :good:
Title: Re: UO DiNGSFont v6 (11. Septemper 2012)
Post by: erico on 2012-Sep-13
Nice! will give a go. :good:
Title: Re: UO DiNGSFont v6 (11. Septemper 2012)
Post by: Marmor on 2012-Sep-13
 :nw: :D :D
Title: Re: UO DiNGSFont v6 (11. Septemper 2012)
Post by: mentalthink on 2012-Oct-08
The "foreign" letters are awesoming... this tool it´s fantastic... so and each new version better and better, thanks for this fantastic Job!!!
  :booze: :booze: :good: :good: :good: :-* :-* :-*
Title: Re: UO DiNGSFont v6 (11. Septemper 2012)
Post by: Alex_R on 2012-Oct-09
Good job!! Thank you for sharing!!
Title: Re: UO DiNGSFont v6 (11. Septemper 2012)
Post by: WPShadow on 2012-Oct-15
Wow, das Teil ist der Hammer! Klasse Arbeit!  :good:
Title: Re: UO DiNGSFont v6 (11. Septemper 2012)
Post by: BdR on 2012-Oct-23
The new load/save-feature is awesome, really saved me some work =D thanks
Title: Re: UO DiNGSFont v6 (11. SeptemBer 2012)
Post by: sf-in-sf on 2013-Apr-25
So useful! So beautiful!
Whaaaaaaaaaaa!   <3
Fantastic, Dude!
Title: Re: UO DiNGSFont v6 (11. Septemper 2012)
Post by: Worebu on 2013-Jun-22
Hi, ersma  :nw: . Sehr geiles Teil. Allerdings wird die Sprachenstellung nicht gespeichert, ist das richtig oder mache ich was falsch. Ansonsten  :good:
Title: Re: UO DiNGSFont v6 (11. Septemper 2012)
Post by: MrTAToad on 2013-Jul-03
Would it be possible to amend the program to allow custom file formats.  I'm looking to start adding "proper" proportional font printing now, and require a specific file format for loading.
Title: Re: UO DiNGSFont v6 (11. Septemper 2012)
Post by: Paul Smith on 2015-Jun-01
Don't know if this has been noticed as i haven't translated the pages but there is a Bug in the Green RGB value.
If I set background or outline etc to 255,0,128 the PNG always saves as 255,4,128 value. not a real problem but good to point out if your doing multiple transparencies .

But I do like this program, good work  :nw: