Vector Fonts

16 Nov 2010 09:23
Last Modified
13 Jan 2013 18:22

I previously mentioned using vector-based fonts, e.g. for deep sky object and star labels. These labels used line-primitives, as shown in Figures 1 and 2.

Roman Font

Figure 1. Line-primitive Roman vector font

Greek Font

Figure 2. Line-primitive Greek vector font

I also wanted to use vector-based fonts with "thick" lines, so needed to expand each line by a given thickness. The steps I used for a basic approach to achieving this are illustrated in Figure 3, using a '>' symbol as an example.

Expanding Line Primitives

Figure 3. Expanding line-primitives to triangle-primitives

The first step is to expand each line-primitive into a pair of triangles of a given thickness. Next, each line is given a semi-circular "cap", with the number of slices defined by a "smoothing" parameter. Rather than using a cap for both the start and end of each line, only a single cap is used at the join between lines. Finally, the number slices drawn for a given cap can be limited by the angle between each line-join, further reducing the vertex and index counts.

Text can now be scaled smoothly, as shown in Figure 4, without the artefacts produced by scaling SpriteBatch raster fonts. One limitation of this approach however, is that text cannot be drawn with transparency since triangles in each character generally overlap.

Vector font scaling

Figure 4. Smooth scaling of vector fonts

Thick Roman Font

Figure 5. Triangle-primitive Roman vector font


Gabriel Reiser
19 Dec 2010 03:03
Hey Dr. Dave... why not just project the object's locations to the screen and use TextureFonts in 2D screen space? That's what I do.
21 Dec 2010 11:33
Hi Gabriel, totally agree with your approach for fonts of known sizes. Aside from my requirement for a set of small fonts using line-primitves, the only reason I expanded them to triangle-primitives was to support a font which could scale from very small to very large. Since I'm scaling vector positions, the "smoothness" of the edges is the same regardless of scale. To arbitraily scale SpriteBatch fonts, I need to pick a very large size for the SpriteFont definition, which doesn't look good when scaled down to be very small.
15 Mar 2011 20:34
These are exactly what I need, how would I get the code for this?
16 Jan 2017 17:41
Unluckily - I don't know how to write my paper so help me
21 Jan 2017 05:15
Российские Лотереи от Столото вновь обворовывают доверчивых Россиян - нечестная игра или Миллиард Лохов под Новый Год.
Хочется поделиться на о схемах обмана игроков в ГОСЛОТО.
И абсолютная противоположность ситуация касаемо зарубежных лотерей.
Россиянин выиграл джекпот лотереи Австрия-Лото через онлайн-сервис Лотто Агента AgentLotto1.Com:
<a href=>Зарубежные национальные лотереи EuroJackpot онлайн</a>.
24 Jan 2017 14:26
<a href=>купить детский квадроцикл</a>
30 Jan 2017 12:49
this is the apropriate page to post my article. So if it's a mistake then delete this article - Dr Dave | Vector Fonts.

I’ve put together a list here of the top 12 WordPress books you should definitely check out if you want to improve your development skills and generally get more familiar with the CMS. It’s a diverse mix here of books for true-blue beginners, the intermediate set, and those with advanced skills. I’m presenting them in no particular order because I think they all have something to offer — whether it’s distilling WordPress into the simplest terms or delving into the nitty-gritty of PHP. <a href=>wordpress real estate theme xml </a>Sams Teach Yourself WordPress in 10 Minutes gives you straightforward, practical answers when you need fast results. By working through its 10-minute lessons, you'll learn everything you need to build great blogs with WordPress and, and reach any audience by web browser, RSS, or cell phone. <a href=>wordpress theme upload </a>

Luster Forest is an awesome example of real estate wordpress theme with idx on how to combine the nature and the real estate business. Real estate wordpress theme themeforest – is a good theme for Forest based properties. <a href=>wordpress theme update </a>The Luster wordpress real estate themes with idx broker have a Login/Register option that allow your visitors to register on your site and have a personal account info idx broker wordpress themes. The users menu will contain links as: responsive idx wordpress theme, Add Property, Personal Properties, free idx wordpress theme, Edit Profile, real estate idx wordpress themes and etc. You can also close the registration, in this case only the administrator will have the option to publish new properties. Wordpress theme idx integration. <a href=>wordpress theme uncode </a>

Take a look - real estate wordpress theme idx
<a href=>openhouse real estate wordpress theme</a>
30 Jan 2017 15:21
Господа, отличный сайт игры <a href=>rift forum </a> бесплатно и без доната. Заходите!
2 Feb 2017 09:35
<a href=>3d watch</a> - buy glasses online, graduation dresses.
2 Feb 2017 11:05
good resource <a href=>xnxx film</a>
5 Feb 2017 02:34
нашел недавно <a href=>взлом одноклассников бесплатно</a> Взломать страничку популярного портала Одноклассники бесплатно – не проблема. ОдноМастер позволяет узнать пароль от страницы независимо от длины, и при этом делает это мгновенно <b>Вот еще наткнулся - </b> видеозапись <a href=>YouTube Канал</a>
<a href=><img></img></a>
хотелось узнать работает ли это? Я думаю проверить ее...
7 Feb 2017 20:35
<a href=>основы программирования вба</a>
8 Feb 2017 05:04
I need to contact admin.
Thank you.
11 Feb 2017 01:20
Важный факт: если предварительно договориться, то <a href=>проститутки сочи</a>
<a href=>проститутки сочи</a>
разрешат снимать себя и весь процесс на фото и видео.
<a href=>проститутки сочи</a>
<a href=http://xn----otbabhwecjlehbao4e.xn--p1ai>проститутки сочи</a>
<a href=>проститутки сочи</a>
<a href=>проститутки сочи</a>
11 Feb 2017 03:51
Пояс для похудения купить в спб -
13 Feb 2017 13:14
гель для увеличения полового члена
18 Feb 2017 07:47

<a href=>Timberland Botas Colores</a>
<a href=>Comprar Nike Roshe One Baratas</a>
<a href=>New Era Gorras</a>
<a href=>Gafas Ray Ban Predator 2</a>
<a href=>Puma Shoes Womens</a>
20 Feb 2017 14:31

<a href=>Nike Air Presto Qs</a>
<a href=>Air Max 95 Jd Sports</a>
<a href=>Adidas Gazelle Ladies</a>
<a href=>Saucony Originals On Feet</a>
<a href=>Vans Kids Shoes</a>
6 Mar 2017 04:24
<a href=>порно деды с молоденькими</a>

<a href=>молоденькие сучки порно</a>

<a href=>порно молоденьких боль</a>
18 Mar 2017 19:24
portray hyped <a href="">yoyv</a> element badgers harvester provider <a href=>ikgow</a> handwritten youngest genkuro insults detector
20 Mar 2017 01:56
favourable website <a href=></a>
21 Mar 2017 02:26
Here you can see the list of girls who show their naked bodies and masturbate for you online!

Add Comment