Windows Forums
http://forum.mintywhite.com/

Winfonts - backup & preview your installed fonts!
http://forum.mintywhite.com/viewtopic.php?f=36&t=7335
Page 1 of 2

Author:  Batupata [ Sun Aug 21, 2011 12:10 pm ]
Post subject:  Winfonts - backup & preview your installed fonts!

Hello, while struggling with the screen capture program, I just made this program fast (my friend asked this kind of program but I though I could share it here too). So with this you can preview & backup fonts easily. This is a good program especially for those who are looking specific kind of font but using e.g. word or notepad is too slow.

Here is the main window:
Image

Here you have quite a much of buttons and labels, so I'll explain a few:

Mark - This adds the selected font to another box on the right so you can pick a few fonts and compare them later.
Accepted font extensions - This box that includes all extensions I have declared as font extension, you can edit it by pressing the 'Edit' button. Required for restoring fonts from a backup. (Extensions by default are *.ttf, *.otf, *.pfb and *.fon)
Overview all fonts - opens this window:
Image
Double-clicking any item will select that font and you can mark it then.

Download link: via Mediafire

Please give me some feedback! Or if you have questions/need a specific program, I can do my best, just ask!

Author:  Stu [ Tue Aug 23, 2011 9:23 am ]
Post subject:  Re: Winfonts - backup & preview your installed fonts!

Backup all fonts:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.IOException: The file 'C:\Users\Stu\Desktop\desktop.ini' already exists.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite)
   at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
   at Microsoft.VisualBasic.FileIO.FileSystem.CopyOrMoveFile(CopyOrMove operation, String sourceFileName, String destinationFileName, Boolean overwrite, UIOptionInternal showUI, UICancelOption onUserCancel)
   at Microsoft.VisualBasic.MyServices.FileSystemProxy.CopyFile(String sourceFileName, String destinationFileName, Boolean overwrite)
   at Winfonts.Form1.Button6_Click_1(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.237 (RTMGDR.030319-2300)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Winfonts
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/Stu/Downloads/Dump/Winfonts.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.236 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.235 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Seems simple to fix.

Restore fonts from a Backup:
If clicked but then cancelled, a success message is still shown!

Would be nice to be able to specify a directory of fonts.

Author:  Batupata [ Thu Aug 25, 2011 12:36 pm ]
Post subject:  Re: Winfonts - backup & preview your installed fonts!

Yep, easy fix! Thanks for pointing that out, Stu. Specify a directory of fonts, are you meaning that some fonts are in a specific directory and it'd show only the fonts that are in the selected directory?

Author:  Stu [ Thu Aug 25, 2011 1:40 pm ]
Post subject:  Re: Winfonts - backup & preview your installed fonts!

When started it looks in %windir%\fonts. I only have a handful installed at any one time so 99% of my fonts are in a different directory e.g. E:\Media\Design\Fonts. It would be nice to be able to specify a custom directory to preview.
Also, why not add every font file type available instead of having the ability to filter/change?

Author:  Batupata [ Sat Aug 27, 2011 4:40 am ]
Post subject:  Re: Winfonts - backup & preview your installed fonts!

Yea, I'll look at it, it looks only the installed fonts atm. The font type list is because I really have no idea how many font extensions are in total.

Author:  Stu [ Sat Aug 27, 2011 9:57 am ]
Post subject:  Re: Winfonts - backup & preview your installed fonts!

Batupata wrote:
The font type list is because I really have no idea how many font extensions are in total.


http://www.fileinfo.com/filetypes/font

Author:  Batupata [ Sat Aug 27, 2011 10:08 am ]
Post subject:  Re: Winfonts - backup & preview your installed fonts!

Thanks!! Already managed to preview uninstalled fonts :D

Author:  Stu [ Thu Nov 10, 2011 2:32 pm ]
Post subject:  Re: Winfonts - backup & preview your installed fonts!

Any updates? ;)

Author:  Batupata [ Sat Nov 12, 2011 3:56 am ]
Post subject:  Re: Winfonts - backup & preview your installed fonts!

Yeap! :D In order to make the marked fonts list working for both installed and custom fonts at the same time, I have to make a new font list where I have to copy the specific fonts. Probably easy, it just need thinking.
Still some bugs, but I'll list the known ones here:

    1. The marked fonts list.
    2. I haven't even looked at the backup and restore buttons atm, but I have (almost) the whole weekend time!
    3. 'Delete' button doesn't work.
    4. If you get the "Please set a valid folder where to look for font files" message, but your folder is valid, please just press refresh.

Here is the download link if you want to test this version:
Winfonts

Author:  Stu [ Sat Nov 12, 2011 8:53 am ]
Post subject:  Re: Winfonts - backup & preview your installed fonts!

Great update Batu! This is fantastic!

Some things i've found:

.otf fonts are not being recognised or displayed in the dropdown list. (Reproducible)

Setting a custom location results in the top-level fonts being immediately displayed however, if i click All Subdirectories and hit refresh, it crashes. (Reproducible)

When saving the marked fonts list to .txt file i recieve this error message. (Reproducible)
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Operator '&' is not defined for type 'ListViewItem' and string "
".
   at Microsoft.VisualBasic.CompilerServices.Operators.InvokeObjectUserDefinedOperator(UserDefinedOperator Op, Object[] Arguments)
   at Microsoft.VisualBasic.CompilerServices.Operators.InvokeUserDefinedOperator(UserDefinedOperator Op, Object[] Arguments)
   at Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Object Left, Object Right)
   at Winfonts.Form1.Button4_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.239 (RTMGDR.030319-2300)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Winfonts
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///E:/User-Data/Stu/Downloads/Dump/Winfonts.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.236 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.235 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


When viewing Overview all fonts, sometimes it crashes, sometimes it works fine.

Memory leaks? - This was increasing by the second.

Page 1 of 2 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/