in

ASP.NET Weblogs

Phil Scott's WebLog

Quite exciting this computer magic

Font Add-In for Reflector

Feel free to ignore everything posted here. Reflector has a switch, /fontsize:14 that would do the samething. The moral of the story, as always, is that I'm an idiot. I'll leave this posted so people can point and laugh at me.

As a trainer, reflector is obviously a TREEEEmendous tool to have at your disposal.  The problem?  8.25ft on a projector generally doesn't go over well.  I've used those zoom-in tools in the past, but with the release of the 4.0 release of reflector I decided to get off my butt and knock out an add-in to bump up the font.  So, I present to you, the most ghetto add-in for reflector ever, FontPackage.  There are somethings to keep in mind:

  1. The GotDotNet workspaces were running WAY to slow for me to figure out if there is better info out there on writing an add-in, so I just kinda winged it.
  2. I use Lucida Console, 14pt for everything.  If you want to customize the font for each window, knock yourself out. 

So here it is, in all it's glory:

Public Class FontPackage
    Implements Reflector.IPackage
    Private windowManager As Reflector.IWindowManager

    Public Sub Load(ByVal serviceProvider As System.IServiceProvider) Implements Reflector.IPackage.Load
        windowManager = serviceProvider.GetService(GetType(Reflector.IWindowManager))
        Dim myFont = New System.Drawing.Font("Lucida Console", 14, System.Drawing.FontStyle.Regular)
        windowManager.Content.Font = myFont
        For Each myWindow As Reflector.IWindow In windowManager.Windows
            myWindow.Content.Font = myFont
        Next
    End Sub
    Public Sub Unload() Implements Reflector.IPackage.Unload
    End Sub
End Class


Here's the compiled version of my wonderful app right here. A word of warning, I spent all of 15 minutes writing this, and 10 minutes of that was waiting for GotDotNet to respond to different page requests. Obviously, I've not done any error handling and the possibility of actually having a dialog to customize the font would be pretty cool. But it gets the job done for me, and I just felt like sharing.

Comments

 

Frank said:

Why not use: Reflector.exe /fontsize:13 (?)
May 3, 2004 12:28 AM
 

Phil Scott said:

SON OF A BITCH.

i both hate and love you frank
May 3, 2004 12:30 AM
 

Phil Scott said:

Well now I have to go and do something really cool because the whole internerd knows that I'm too stupid to run a /? on a program.

Reflector.exe /fontname:Lucida Console /fontsize:14

This is not a good way to go to sleep, dwelling on failure....
May 3, 2004 12:43 AM
 

Frank said:

Think about it this way: You get the credit for making sure everybody finds out this command line switch exists.
May 3, 2004 1:55 AM
 

Thomas Freudenberg said:

@Phil: and if you put quotation marks around the font name it will even work ;-)
May 4, 2004 9:08 AM
 

tricia liebsch said:

<a href="www.wpiproject.info/showers32.html">free golden showers gallery</a> free golden showers gallery,<a href="www.wpiproject.info/certain46.html">annuity factors term certain</a> annuity factors term certain,<a href="www.wpiproject.info/certain46.html">weather info for a certain day</a> weather info for a certain day,<a href="www.pihlz.info/ran52.html">rans</a>">www.pihlz.info/.../a> rans,<a href="www.wpisupplies.info/lies17.html">billy talent lies tab</a> billy talent lies tab,<a href="www.wpination.info/sanibel81.html">sanibel florida real estate</a> sanibel florida real estate,<a href="www.pihlz.info/tricia91.html">matt danowski tricia</a> matt danowski tricia,<a href="www.wpiland.info/terrace35.html">terrace heights hospital parsons blvd queens ny</a> terrace heights hospital parsons blvd queens ny,<a href="www.pihlz.info/ran52.html">ran dahlstr246</a> ran dahlstr246,<a href="www.pihlz.info/ran52.html">melda ran</a> melda ran,

October 30, 2007 9:08 PM
 

lhuile hydrosoluble said:

<a href="www.homeviewuzbekistan.info/slutty53.html">slutty">www.homeviewuzbekistan.info/slutty53.html">slutty women videos</a> [url=www.homeviewuzbekistan.info/slutty53.html]slutty women videos[/url] slutty women videos www.homeviewuzbekistan.info/slutty53.html,<a href="www.freewuzstore.info/overlay50.html">blue">www.freewuzstore.info/overlay50.html">blue sweetheart neck halter black sheer overlay</a> [url=www.freewuzstore.info/overlay50.html]blue sweetheart neck halter black sheer overlay[/url] blue sweetheart neck halter black sheer overlay www.freewuzstore.info/overlay50.html,<a href="www.officialwuzsupplies.info/vacant38.html">108th">www.officialwuzsupplies.info/vacant38.html">108th congress vacant seat</a> [url=www.officialwuzsupplies.info/vacant38.html]108th congress vacant seat[/url] 108th congress vacant seat www.officialwuzsupplies.info/vacant38.html,<a href="www.freewuzstore.info/overlay50.html">creating myspace div overlays</a> [url=www.freewuzstore.info/overlay50.html]creating myspace div overlays[/url] creating myspace div overlays www.freewuzstore.info/overlay50.html,<a href="www.officialwuzsupplies.info/vacant38.html">find ski resort director position vacant</a> [url=www.officialwuzsupplies.info/vacant38.html]find ski resort director position vacant[/url] find ski resort director position vacant www.officialwuzsupplies.info/vacant38.html,

December 20, 2007 3:51 AM
 

mushrooms sylvia plath analysis said:

<a href="www.wuzhome.info/sylvia12.html">sylvia">www.wuzhome.info/sylvia12.html">sylvia bishop seminars</a> [url=www.wuzhome.info/sylvia12.html]sylvia bishop seminars[/url] sylvia bishop seminars www.wuzhome.info/sylvia12.html,<a href="www.sawuzi.info/boomer17.html">six">www.sawuzi.info/boomer17.html">six white boomers music</a> [url=www.sawuzi.info/boomer17.html]six white boomers music[/url] six white boomers music www.sawuzi.info/boomer17.html,<a href="www.habasitio.info/preisvergleich25.html">espresso">www.habasitio.info/preisvergleich25.html">espresso 1 lehrbuch preisvergleich</a> [url=www.habasitio.info/preisvergleich25.html]espresso 1 lehrbuch preisvergleich[/url] espresso 1 lehrbuch preisvergleich www.habasitio.info/preisvergleich25.html,<a href="www.wuzhome.info/sylvia12.html">sylvia">www.wuzhome.info/sylvia12.html">sylvias restaurantny</a> [url=www.wuzhome.info/sylvia12.html]sylvias restaurantny[/url] sylvias restaurantny www.wuzhome.info/sylvia12.html,<a href="www.wuznation.info/seizures47.html">what">www.wuznation.info/seizures47.html">what causes a dog to have seizures</a> [url=www.wuznation.info/seizures47.html]what causes a dog to have seizures[/url] what causes a dog to have seizures www.wuznation.info/seizures47.html,

December 20, 2007 8:58 AM
 

upskirts rbd said:

<a href="www.glanderiver.info/race16.html">the">www.glanderiver.info/race16.html">the presdiental race 1992</a> [url=www.glanderiver.info/race16.html]the presdiental race 1992[/url] the presdiental race 1992 www.glanderiver.info/race16.html,<a href="www.superwuz.info/polygon67.html">trusses-">www.superwuz.info/polygon67.html">trusses- triangles strongest polygons-</a> [url=www.superwuz.info/polygon67.html]trusses- triangles strongest polygons-[/url] trusses- triangles strongest polygons- www.superwuz.info/polygon67.html,<a href="www.wuzsupplies.info/gwen22.html">gwen">www.wuzsupplies.info/gwen22.html">gwen stefani words to music</a> [url=www.wuzsupplies.info/gwen22.html]gwen stefani words to music[/url] gwen stefani words to music www.wuzsupplies.info/gwen22.html,<a href="www.wuzwizard.info/heat26.html">heat">www.wuzwizard.info/heat26.html">heat capacity temperature</a> [url=www.wuzwizard.info/heat26.html]heat capacity temperature[/url] heat capacity temperature www.wuzwizard.info/heat26.html,<a href="www.wuzwizard.info/heat26.html">gbc heat153</a> [url=www.wuzwizard.info/heat26.html]gbc heat153[/url] gbc heat153 www.wuzwizard.info/heat26.html,

December 20, 2007 3:42 PM
 

name said:

Help me to find the,

July 29, 2009 5:25 AM
 

name said:

Is it so important?,

July 29, 2009 4:12 PM