AutoHotkey Community

It is currently May 26th, 2012, 1:49 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: January 5th, 2009, 3:19 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
    A simple script to Search/Preview/Download from over 6600 TrueType fonts
    available in http://www.webpagepublicity.com

    Download FontDL.ahk


    Image

    The script requires TheFontList.txt ( 138 KiB ) which will be auto-downloaded as and when required.

    • Keywords should be seperated from each other with +
    • Double click on a fontname or press enter to Preview it
    • Tested in Vista Ultimate & Windows XP

    Thanks to Sean for helping me with DoFileDownload()
    Thanks to olfen for HttpQueryInfo() from which HttpQueryContentLength() was derived.
    Thanks to Lexikos / Laszlo for the MulDiv tip on extracting string from a pointer
    Code:
    HttpQueryContentLength( URL ) { ; Thx olfen www.autohotkey.com/forum/viewtopic.php?t=10510
     hIOU := DllCall( "wininet\InternetOpenUrlA", UInt
          , ( hIO := DllCall( "wininet\InternetOpenA", Str,N, UInt,1, Str,N, Str,N, UInt,0 ) )
          , Str,URL, Str,N, UInt,0, UInt,0x80000000, UInt,0 )
     If ErrorLevel || !hIOU
        Return -1 
     Loop % VarSetCapacity( CL,20,0 ) - 15
       If Q:=DllCall( "wininet\HttpQueryInfoA", UInt,hIOU, Int,5, UInt,&CL, UIntP,Len, Int,0 )
         Break
     DllCall( "wininet\InternetCloseHandle", UInt,hIO )
     DllCall( "wininet\InternetCloseHandle", UInt,hIOU )
    Return, Q ? DllCall( "MulDiv", Int,&CL, Int,1, Int,1, Str ) : -2   
    }

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Last edited by SKAN on January 7th, 2009, 9:24 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2009, 3:29 pm 
Very Nice!
amazing as alway, SKAN


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2009, 3:37 pm 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
Sweet!

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2009, 4:49 pm 
Offline

Joined: March 27th, 2008, 2:14 pm
Posts: 700
Really cool SKAN! You should add a "Download & Install" button cuz the if we're using this awesome script, we're already too lazy to go look for the font ourself, let alone actually dragging it into the fonts on our system. :P

_________________
Scripts - License


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2009, 5:14 pm 
Offline

Joined: March 10th, 2008, 12:55 am
Posts: 1907
Location: Minnesota, USA
I like it alot :) very cool
when saving, I just set the save directory to font folder :) insta install.

_________________
rawr. be very afraid
*poke*
Note: My name is all lowercase for a reason.
"I think Bigfoot is blurry, that's the problem. It's not the photographer's fault, Bigfoot is blurry. So there's a large, out-of-focus monster roaming the countryside."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2009, 5:16 pm 
Offline

Joined: March 27th, 2008, 2:14 pm
Posts: 700
tidbit wrote:
when saving, I just set the save directory to font folder :) insta install.
Oh.
...
Duh. :P

_________________
Scripts - License


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2009, 7:38 pm 
Offline

Joined: January 18th, 2006, 7:39 am
Posts: 274
Location: Conway, Arkansas
Fantastic, SKAN. Really, really nice.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2009, 9:49 pm 
Offline

Joined: January 20th, 2007, 1:29 pm
Posts: 96
Location: Melbourne
Superb, just superb, I had no idea you could get so many free fonts from one place.
Thanks Skan.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2009, 9:33 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Thanks to everyone. :D

Here is an updated version, that uses Microsoft's fontinst tool, to install the downloaded fonts.

Image

Download TFD-v1.0.zip 79.96 KiB ( The Script, FontList & fontinst.exe )

( VirusTotal.com results for fontinst.exe )

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 8th, 2009, 5:40 am 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
It just keeps getting better!
Awesome tool for graphic designers.

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Klark92, Yahoo [Bot] and 22 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group