Raster fonts in Visual Studio 2010

Every time a new version of Visual Studio is released it seems that some details change for the worst. Don't get me wrong there is also added value, but for the hardcore coder some design decisions seem rather obtuse.

I would argue that the most important part of an IDE is the editor. To get the most out of a code editor I always configure it with a font that give me the most amount of overview while still being readable. For me this threshold seems to be a font with the size of 6x10 pixels. While I have ClearType enabled where possible, for my coding font I prefer the extra clarity of a non-antialiased font.

When Visual Studio 2005 was in beta I noticed that each each line in the editor had an extra pixel added to it. I dutifully reported this bug at Microsoft Connect, but of course this was by design to allow for "squiggles". This lost me 10% of my vertical screen real estate. Not good I though, and after some redesign of my raster font I was able to make a special 9 pixel version of it only for use in Visual Studio.

Visual Studio 2010 Beta 1 was released in May. Eager to try out the new C++0x features of the C++ compiler I installed it and fired up the new version of the tool I spend a considerable portion of my day in front of. I proceeded to the options to select my font and... Well nothing. My font was not available for selection. Disappointed I uninstalled the beta and resigned myself to wait for the next beta. I did plan to report the bug, but other things kept my attention.

Back in October Beta 2 was released. The first thing I tried was configuring my font. Now it was available, but when I selected it the editor stayed the same, and after restarting it was not possible to open documents. I played around with some default fonts and it turned out that now instead of one extra pixel between lines there were two. Sigh...

After some googling the picture became clear. Something horrible had happened. The decision had been made that the editor was to be coded in WPF. Apparently this meant raster fonts are no longer supported in Visual Studio, only outline fonts. How could this have happened? What were they thinking at Microsoft, a code editor not supporting raster fonts? Surely not. While I saw the writing on the wall I still reported not supporting raster fonts as a bug, but alas it was not meant to be. I also reported the humongous line spacing. At least this was acknowledged and I was promised that RTM would revert to the Visual Studio 2008 less horrible one extra pixel per line.

The Solution
At this time I started looking for workarounds as getting Microsoft to care seemed doomed. I found a place to complain at the Visual Studio Blog, and some hope at WPF Text Blog.

It turns out that between Beta 1 and Beta 2 support for embedded bitmaps in East Asian fonts were added. Well great I though, it should be an easy thing to take advantage of this fact by fulfilling the criteria of being an east Asian font.

Turns out it was not that simple figuring out the criteria. Getting the embedded bitmaps to be used outside of Visual Studio 2010 was as easy as specifying certain MS Code Pages in the OS/2 Panpose table of the TTF. Making Visual Studio 2010 do the same thing seemed impossible.

The tool of choice for doing my font editing was fontforge, an open source font editor. After much tinkering with many setting I tried loading one of the default fonts that worked in Visual Studio 2010 and just exporting it again. Turns out that this action made the font not use the embedded bitmaps in Visual Studio. At a loss I asked Microsoft what properties a font needed to fulfill to be considered Asian. The answer lead me to believe that some kind of checksum or some other hard coded approach was used to decide to render the embedded bitmaps.

Ok I thought, lets forget about the embedded bitmaps. While looking for font editing tools I had stumbled on fontflasher. This tool converted pixelated fonts into outlines that correspond exactly to pixel boundaries. If this program could solve my problems it would be worth the cost, but it turned out that it didn't render my raster font correctly, but another font was used instead.

I could find no other program that could do the same thing, so I resigned myself to writing such a program. I proceeded to read and implement the various standards for reading and writing .FON, .FNT and .TTF files. In doing so I found out about the various properties and tables available in a TTF file, and with this knowledge in hand I thought I would give the embedded bitmaps a last try. While fiddling around with this I actually found a font that still used the embedded bitmaps in Visual Studio 2010 when reexported in fontforge. This font was 'MS Mincho'.

After much trial and error I found a list of requirements that would make Visual Studio 2010 use the embedded bitmaps in my custom font!

* Add 'Traditional Chinese' code page to the OS/2 Panpose table.
* Use the 'ISO 106046-1' (Unicode, UCS-2) encoding.
* Include glyphs for the following seemingly random Hiragana characters:
い - U+3044
う - U+3046
か - U+304B
ひ - U+3057
の - U+306E
ん - U+3093

Even better, I found that by tweaking the bounding box of the outline glyphs I could control the line spacing in Visual Studio 2010. No clipping was performed for the text output!

In the end it turned out that not only was I able to use my custom font, I was actually able to solve the problem of excessive line spacing!

Step by step instructions
These instructions allow you to convert your favorite FON file to a TTF usable in Visual Studio 2010 or other WPF programs.

If your font file includes several versions such as bold and non bold you need to split them into separate .FON files. This can be accomplished with for example Fony.

Install Cygwin with X11 and wget selected.

Install fontforge from CygWin Bash Shell:

From X11 terminal:

In the dialog box, open the .FON file you want to convert.

Select Element->Font Info

Change Fontname to something to distinguish this font from the raster font. As an example I use WPF:

Add the 'Traditional Chinese' MS Code Page by unchecking 'Default' and Ctrl+clicking the '950, Traditional Chinese' line:

Select Encoding->Rencode->ISO 10646-1 (Unicode, BMP)

Select the A character

Select Window->New Outline Window

Here draw a rectangle that fills a portion of the descent of the font. Depending on the amount of descent filled in, the line spacing in Visual Studio will differ. If you fill in the whole descent the line spacing will be default, if you fill in only some descent the line spacing will be reduced. In this example I'm aiming for reduced line spacing.

Select View->24 pixel outline. This will display the outline glyphs for the font. We only have one outline that is not empty, and this is the A character.

Select the Space character (32) and press Ctrl+C to copy it's contents.

Scroll down to 12356 and paste with Ctrl+V. Do the same thing for all of the following characters:

12356 - 0x3044
12358 - 0x3046
12363 - 0x304b
12375 - 0x3057
12398 - 0x306e
12435 - 0x3093

You should end up with a view looking somewhat like the following. The characters in question and selected, and thus yellow.

Select File->Save to save your font.

Select File->Generate Fonts...

Make sure that TrueType and in TTF/OTF is selected and press Save. You might get a warning about Em Size, just press Yes.

Now just install your generated font by right clicking it in explorer and choose Install.

The font should now be usable in Visual Studio 2010. One caveat is that the font only works at the sizes that have bitmaps available, so make sure to select the correct point size, othewise the editor will be fully black except for the outline specified for A characters.

Example Font
Here is my custom 'Mono Pro' font, both in raster format and a special version for Visual Studio 2010 with reduced line spacing.
Now updated for correct line spacing in Visual Studio 2010 RC:
Download MonoPro.zip

Mono Pro in Visual Studio 2010


«Oldest   ‹Older   201 – 270 of 270
Jobi said...

It's actually a great and helpful piece of information. I am satisfied that you just shared this useful information for us.
Danny Zuko Leather Jacket

Keluaran Hongkong said...

keluaran hongkong terkenal cepat memberikan keluaran hk kepada membernya http://keluaranhongkong88.com/

keluaran sgp said...

Keluaran sgp telah menyiapkan hadiah yang besar setiap hari http://keluaransgp88.com/

Nino Nurmadi , S.Kom said...

Nino Nurmadi, S.Kom
Nino Nurmadi, S.Kom
Nino Nurmadi, S.Kom
Nino Nurmadi, S.Kom
Nino Nurmadi, S.Kom
Nino Nurmadi, S.Kom
Nino Nurmadi, S.Kom
Nino Nurmadi, S.Kom
Nino Nurmadi, S.Kom
Nino Nurmadi, S.Kom

Kim said...

You’re so interesting! I don’t believe I’ve truly read something like this before. So great to find someone with genuine thoughts on this issue. Really.. many thanks for starting this up. This website is something that’s needed on the internet, someone with some originality!

CBSE Schools In Latur
CBSE Schools In Nanded
CBSE Schools In Nandurbar
CBSE Schools In Dhule
CBSE Schools In Gondia
CBSE Schools In Jalgaon
CBSE Schools In Mumbai
CBSE Schools In Solapur
CBSE Schools In Pune
CBSE Schools In Kolhapur

Uve said...

Thanks for this amazing article.

try Carlsbad Pest Control for a free consultation
visit Santee Pest Control
click here to signup with Vista Pest Control
sign in to your Escondido Pest Control
more about Poway Pest Control
sign up for La Mesa Pest Control
try Teaneck Exterminators for a free consultation

keluaranhk said...

daftar di keluaranhk banyak jackpot dan tawaran menarik lainnya.

SSolumsuns10 said...

rastgele görüntülü konuşma - kredi hesaplama - instagram video indir - instagram takipçi satın al - instagram takipçi satın al - tiktok takipçi satın al - instagram takipçi satın al - instagram beğeni satın al - instagram takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - binance güvenilir mi - binance güvenilir mi - binance güvenilir mi - binance güvenilir mi - instagram beğeni satın al - instagram beğeni satın al - polen filtresi - google haritalara yer ekleme - btcturk güvenilir mi - binance hesap açma - kuşadası kiralık villa - tiktok izlenme satın al - instagram takipçi satın al - sms onay - paribu sahibi - binance sahibi - btcturk sahibi - paribu ne zaman kuruldu - binance ne zaman kuruldu - btcturk ne zaman kuruldu - youtube izlenme satın al - torrent oyun - google haritalara yer ekleme - altyapısız internet - bedava internet - no deposit bonus forex - erkek spor ayakkabı - webturkey.net - karfiltre.com - tiktok jeton hilesi - tiktok beğeni satın al - microsoft word indir - misli indir

hkpools said...

diskon topup di hkpools, ayo segera kunjungi situs kami.

BarokahPkv said...

Situs Terpercaya Seindonesia 

Bandar Poker



Perang Dadu 






Domino 99

Perang Baccarat


andrewjackson said...

Our the purpose is to share the reviews about the latest Jackets,Coats and Vests also share the related Movies,Gaming, Casual,Faux Leather and Leather materials available John Rambo Jacket

andrewjackson said...

Our the purpose is to share the reviews about the latest Jackets,Coats and Vests also share the related Movies,Gaming, Casual,Faux Leather and Leather materials available Clint Eastwood Poncho

Unknown said...

aşk kitapları
youtube abone satın al
cami avizesi
cami avizeleri
avize cami
no deposit bonus forex 2021
takipçi satın al
takipçi satın al
takipçi satın al
instagram beğeni satın al
instagram beğeni satın al
tiktok izlenme satın al
sms onay
youtube izlenme satın al
no deposit bonus forex 2021
tiktok jeton hilesi
tiktok beğeni satın al
takipçi satın al
uc satın al
sms onay
sms onay
tiktok takipçi satın al
tiktok beğeni satın al
twitter takipçi satın al
trend topic satın al
youtube abone satın al
instagram beğeni satın al
tiktok beğeni satın al
twitter takipçi satın al
trend topic satın al
youtube abone satın al
perde modelleri
instagram takipçi satın al
instagram takipçi satın al
takipçi satın al
instagram takipçi satın al

Unknown said...

instagram takipçi satın al
ucuz takipçi
takipçi satın al
instagram takipçi satın al
instagram takipçi satın al
balon perdeler
petek üstü perde
mutfak tül modelleri
kısa perde modelleri
fon perde modelleri
tül perde modelleri
yasaklı sitelere giriş
aşk kitapları
yabancı şarkılar
sigorta sorgula
word indir ücretsiz
tiktok jeton hilesi
rastgele görüntülü sohbet
erkek spor ayakkabı
fitness moves
gym workouts

RKNSEO said...

Het was fantastisch. Ik denk dat je je verkeer kunt vergroten op basis van je inhoud.

Als u uw websiteverkeer, SEO en website laten maken, of app laten maken wilt vergroten, of grafische ontwerp diensten nodig heeft, kunt u contact opnemen met het Nexoz team.

Nexoz services:

Website maken

google gamers said...

free classic mahjong
Cookie Crush 2
bug match
candy rain 4
Candy Rain 3
bike racing 2
Fly with Rope 2
bubble shooter saga 2
Crazy Birds 2

Bandar Togel Online said...

agen pragmatic online

Slot Online KINGDOM said...

Slot Online KINGDOMGRUP join dan ikuti promonya

Unknown said...


x said...


mrbobystone said...

Hi , Thank you so much for writing such an informational blog. If you are Searching for latest Jackets, Coats and Vests, for more info click on given link-Attack on Titan Jacket

RKNSEO said...


Phoenix Home Plumbing

Example of Monero Mining with Blog

UPVC windows Basics

Ways to make money online

Destination wedding it is! Exotic and extraordinary


Gambling in Anime

Clipping Pacific said...

Nice blog. Thanks for sharing this post.
Clipping Path Service

vivikhapnoi said...

I have to convey my respect for your kindness for all those that require guidance on this one field. Your special commitment to passing the solution up and down has been incredibly functional and has continually empowered most people just like me to achieve their dreams. Your amazing insightful information entails much to me and especially to my peers.
vé máy bay từ houston về việt nam

chuyến bay cuối cùng từ pháp về việt nam

vé máy bay từ singapore về vinh

lịch bay từ úc về việt nam hôm nay

ve may bay vietnam airline tu han quoc ve viet nam

Tra ve may bay gia re tu Nhat Ban ve Viet Nam

Raj Sinha said...

Looking forward to reading more. Great blog for schools. Really looking forward to read more. Really Great.

Kendriya Vidyalaya No 1 NHPC Chamera
Kendriya Vidyalaya No 2 NHPC Chamera
Kendriya Vidyalaya Hamirpur
Kendriya Vidyalaya Nadaun
Kendriya Vidyalaya YOL Cantt
Kendriya Vidyalaya Palampur
Kendriya Vidyalaya Alhilal
Kendriya Vidyalaya Naleti
Kendriya Vidyalaya Dharamshala
Kendriya Vidyalaya Bhanala

Jenny Aurellia said...

Bagi para penggemar yang ingin bermain Slot Online Deposit Pulsa Tanpa Potongan yang bisa dimainkan dengan sangat mudah dan dimanapun kapanpun kalian inginkan bisa langsung mengunjungi situs IDN89 yang sudah terpercaya melalui

mposlot said...

bonus dan cashback di depan mata!!
bergabunglah bersama mposlot

x said...

instagram takipçi satın al | takipçi satın al | https://apkarchiv.com

Gajah77 said...

Kami situs Gajah77 merupakan Bandar Live Casino yang sudah berdiri sejak 2016 dan dilisensi PAGCOR yang berdiri di filipina

Nimsik said...

بسیار پست با کیفیتی بود.

در صورت نیاز به خدمات طراحی گرافیک، تبلیغات و یا طراحی و توسعه می توانید به شرکت ریوال ایجسنی اعتماد کنید.

تیم ریوال با سابقه ای درخشان و با در اختیار داشتن کادری مجرب و حرفه ای در عرصه گرافیک و تبلیغات آماده همکاری با شرکت های داخلی و خارجی می باشد.

Nimsik said...
This comment has been removed by the author.
Nimsik said...
This comment has been removed by the author.
slotgacorbcaplay said...

boom bastik le loba loba,, owww slot
slot gacor online indonesia

mposlot said...

mpo slot..

Unknown said...

dominoqq menyediakan berbagai macam permainan game online terbaru dan terupdate. mari bergabunglah.

PG Soft Games said...

Goooll PG Soft 88

PG Soft 123 said...

pengeluaran terbanyak Pragmatic 88

Anonymous said...

Take note of these as charities are usually forced to throw Coach Outlet Store out hair that is unusable. You want to be sure that the sacrafic of your long locks does benefit the organization and the people it serves.. Furthermore, the researcher empirically tested these frameworks on Chinese and Indian students' choice of behaviour, which in turn supports revised models. These serve to provide managerial implications for both UK higher educational institutions in general and business school management and marketers.This study consists maxclearanceshoes of three main sections. However, in the case of Guyana (which has the lowest levels of air traffic intensity), under arousal storesmkoutlet may contribute to stress there (see Costa, 1996, p.2).Questionnaires were distributed to the three air traffic control offices of each country, and Coach Factory Outlet Online findings were categorized into three groups. These were: (1) Responses that supported the literature; (2) Responses that contradicted the literature; and (3) Responses that provided additional information that was not found in the literature (extrapolated from control questions).Although air home traffic controllers in Antigua and Barbados were not predominantly stressed (30%), higher levels of stress were experienced in Guyana (50%). I took much of my inspiration for this recipe from Cesare Casella, a brilliant Tuscan chef who used to hold court at Beppe, a wonderful restaurant within walking distance of my home in New York years ago, now long gone. I thought Casella soup really improved the French original.

GangStar said...

خدمات ساخت آرم و لوگو حرفه ای در ریوال آنلاین

طراحی لوگو و آرم در تیم خلاق ما کاملا حرفه ای و متمایز انجام می شود.

ما بر این باوریم که ایجاد نماد بصری یک برند مستلزم یک دید استراتژیک و علمی است.

Bengkel motor bekasi said...

Ayo service motor anda sebelum menjadi lebih parah silahkan datang ke Bengkel Motor Bekasi untuk info selengkapnya silahkan kunjungi website kami http://www.bengkelmotorbekasi.com

AminGafari said...

طراحی لوگو تمام اطلاعات لازم در ریوال آنلای را در یک نگاه به مشتری می دهد.

تمام برندهای معروف را از گذشته تا امروز به یاد بیاورید! طراحی لوگوی این برندها یکی از خلاقانه ترین ابزارها برای ارائه محصولات و خدمات آنها بوده است.

در واقع، یک طراحی موفق لوگو به شما کمک می کند از لوگوی خود به عنوان سلاحی برای هدف قرار دادن ذهن مشتریان در یک نگاه و نشان دادن هویت خود به آنها استفاده کنید.

eddielydon said...

This blog was very nicely formatted; it maintained a flow from the first word to the last. Squall Leonhart Jacket

bola online said...

situs taruhan bola online yang melayanani 24 jam dan siap membantu kesulitan anda. gabung dan main bersama kami di

HOKQBET said...

Slot via dana merupakan salah satu transaksi emoney HokQBet yang sangat popluer pada saat ini, dimana setiap member melakukan slot deposit dana tidak dikenakan biaya pengiriman duit dan slot deposit dana atau slot via dana dapat melakukan transaksi dimanapun dan kapanpun karena deposit dana tidak memiliki jam offline, jadi bisa melayani member 24 jam nonstop.

birthday wishes for sister said...

birthday wishes for sister To show your love to your sister on her birthday, we have compiled sweet birthday messages for your sweet sister.

pasti200m said...

rompong lang daftar slot online via dana terpercaya

slot online deposit pulsa tanpa potongan said...

slot online deposit pulsa tanpa potongan hanya di Maxbet268 klik link untuk melanjutkan ke halaman web

melianalim said...

the best slot game online

Unknown said...

mau jekpot bossku???
ayo join segera bersama putih slot
slot terbaik dan terpercaya
dapatkan pelayanan ramah dan tercepat dari customer service kami
putih slot


Situs H2HSlot adalah agen slot deposit pulsa termurah,terbesar, dan menjadi agen situs judi slot online terbesar diantara situs-situs lainnya. H2HSlot hadir disini dengan memberikan promo-promo yang menarik untuk para pecinta slot online.

Jobi Johnson said...

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. Chris Evans Knives Out Coat

George Mark said...

Such an interesting article here.I was searching for something like that for quite a long time and at last I have found it here. Oakland Raiders Jacket

Jobi Johnson said...

Thank you very much for this great post. John Dutton Vest

محمد نصر said...

يعتبر موقع دليل الكويت من اكبر المواقع الاعلانية فى دولة الكويت التى يمكنك من خلالها الحصول على خدماتك بشكل امن وسريع ومن هذه الخدمات هي خدمة صباغ و فني ستلايت و كشف تسربات المياه و كشف خرير المياه بالاضافة الى خدمة صباغ بالكويت و كشف خرير المياه

kera4d said...

the best kera4d

Unknown said...

tiktok jeton hilesi
tiktok jeton hilesi
binance referans kimliği
gate güvenilir mi
tiktok jeton hilesi
bitcoin nasıl alınır
yurtdışı kargo

amirosta said...

طراحی لوگو های شیک در لوگووین

در شرکت لوگووین می توانید به تولید لوگو های حرفه ای و شیک افتخار کنید.

به عنوان تیمی از بهترین طراحان لوگو و آرم که برنده بهترین عناوین هستند، لوگووین همیشه در تلاش است تا لحن را برای گرایش های لوگو امسال ایجاد کند.

لوگووین از یک رویکرد گرافیکی و کاربر محور با دیدگاهی آینده‌نگر از نتایج فروش‌محور استفاده می‌کند.

منبع : Winon

mposlot said...

mpo slot online..

kera4d said...

you will need support or suggestions, write me privately.
I interested in your implementation/use case.
the best situs slot terbaik

vailidle said...

The Best Poker Sites in USA | TheJtmHub
Top 10 Poker Sites In USA 상주 출장안마 · 공주 출장샵 1. Bovada – Best Site For Poker In USA · 2. Ignition 고양 출장샵 – Most Played Texas Hold'em · 3. Bovada – Best Poker 서울특별 출장샵 Site 이천 출장안마 For Poker In

Unknown said...

1- takipçi satın al

2- takipçi satın al

3 - takipçi satın al

Unknown said...


Anonymous said...

This is moreover a by and large brilliant post which I genuinely thoroughly enjoyed scrutinizing. It isn't every day that I have the probability to see something like this.. http://marcokrta829.image-perth.org/15-things-your-boss-wishes-you-knew-about-email-marketing-b2b

Anonymous said...

Hmm... Why should I use 'Traditional Chinese' code page for Japanese characters い, う, か, ひ, の, ん ???

I use Japanese code page instead and have no trouble.

agency waall said...

شرکت لوگووین یک تیم حرفه ای در حوزه های مختلف طراحی سایت و سئو و طراحی لوگو و ... می باشد.

همکاری با شرکت ها سازمان ها و افراد مختلف از کشورهای بزرگ دنیا این آژانس را تبدیل به یک صادر کننده ایده,خلاقیت و هنر به خارج از مرزهای کشور کرده است.


sianna said...

رقم صيانة سامسونج
رقم صيانة اريستون
رقم صيانة كريازي
رقم صيانة يونيفرسال
رقم صيانة وايت ويل
رقم صيانة وايت بوينت
رقم صيانة ال جي
رقم صيانة يونيون اير
رقم صيانة ويرلبول
رقم صيانة هيتاشي

sianna said...

رقم صيانة هوفر
رقم صيانة هوت بوينت
رقم صيانة هاير
رقم صيانة هايسنس
رقم صيانة ميلا

رقم صيانة كاريير
رقم صيانة كلفينيتور
رقم صيانة كاندي
رقم صيانة فريجيدير
رقم صيانة فاجور

sianna said...

رقم صيانة طومسون
رقم صيانة سيمنس
رقم صيانة سيلتال
رقم صيانة سوني
رقم صيانة سميج

رقم صيانة سانيو
رقم صيانة دايو
رقم صيانة جولدي
رقم صيانة جورنجي
رقم صيانة جنرال اليكتريك

sianna said...

رقم صيانة جالانز
رقم صيانة جاك
رقم صيانة بيكو
رقم صيانة بوش
رقم صيانة براندت
رقم صيانة باناسونيك
رقم صيانة اندست
رقم صيانة الكتروستار
رقم صيانة البا
رقم صيانة الاسكا

anugerahlogamabadi said...


«Oldest ‹Older   201 – 270 of 270   Newer› Newest»

Post a Comment