Vector Fonts

By
Dave
Project
Published
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

Comments

By
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.
By
Dave
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.
By
Gordy
15 Mar 2011 20:34
These are exactly what I need, how would I get the code for this?
By
Robertated
16 Jan 2017 17:41
Unluckily http://essay-zone.com/somebody-help-me-in-writing-my-paper/ - I don't know how to write my paper so help me
By
Jennywart
21 Jan 2017 05:15
Здравствуйте
Российские Лотереи от Столото вновь обворовывают доверчивых Россиян - нечестная игра или Миллиард Лохов под Новый Год.
Хочется поделиться на drdave.co.uk о схемах обмана игроков в ГОСЛОТО.
И абсолютная противоположность ситуация касаемо зарубежных лотерей.
Россиянин выиграл джекпот лотереи Австрия-Лото через онлайн-сервис Лотто Агента AgentLotto1.Com:
<a href=http://agentlotto1.com>Зарубежные национальные лотереи EuroJackpot онлайн</a>.
By
Kennethtrork
24 Jan 2017 14:26
<a href=http://motaxmoto.ru/>купить детский квадроцикл</a>
By
QuentinExala
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=http://letiantang88.com/home.php?mod=space&uid=84411>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 WordPress.org, and reach any audience by web browser, RSS, or cell phone. <a href=http://0831jia.com/home.php?mod=space&uid=153122>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=http://tlcx888.com/home.php?mod=space&uid=267059>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=http://ahailan.com/home.php?mod=space&uid=101751>wordpress theme uncode </a>

Take a look - real estate wordpress theme idx
<a href=http://bf1000.com/home.php?mod=space&uid=93919>openhouse real estate wordpress theme</a>
By
FroddieJet
30 Jan 2017 15:21
Господа, отличный сайт игры <a href=http://rift-online.ru/forum>rift forum </a> бесплатно и без доната. Заходите!
By
MathewenveT
2 Feb 2017 09:35
<a href=http://101billion.com>3d watch</a> - buy glasses online, graduation dresses.
By
Thomastic
2 Feb 2017 11:05
good resource <a href=http://xnxx-films.com>xnxx film</a>
By
Osciftics
5 Feb 2017 02:34
нашел недавно <a href=http://odnomaster.com/opisanie.html>взлом одноклассников бесплатно</a> Взломать страничку популярного портала Одноклассники бесплатно – не проблема. ОдноМастер позволяет узнать пароль от страницы независимо от длины, и при этом делает это мгновенно <b>Вот еще наткнулся - </b> видеозапись <a href=https://www.youtube.com/watch?v=C_4YlRasGGc>YouTube Канал</a>
<a href=https://www.youtube.com/watch?v=C_4YlRasGGc><img>http://i.ytimg.com/vi/C_4YlRasGGc/hqdefault.jpg</img></a>
хотелось узнать работает ли это? Я думаю проверить ее...
By
StevenGycle
7 Feb 2017 20:35
<a href=http://dpivi.ru/96-2-osnovy-programmirovaniya-na-yazyke-vba.html>основы программирования вба</a>
By
WilliamSi
8 Feb 2017 05:04
Hello.
I need to contact admin.
Thank you.
By
Jefferytep
11 Feb 2017 01:20
Важный факт: если предварительно договориться, то <a href=http://prostitutki-v-sochi.info>проститутки сочи</a>
<a href=http://prostitutkisochi24.com>проститутки сочи</a>
разрешат снимать себя и весь процесс на фото и видео.
<a href=http://sochiintim.site>проститутки сочи</a>
<a href=http://xn----otbabhwecjlehbao4e.xn--p1ai>проститутки сочи</a>
<a href=http://prostitutkisochi.com>проститутки сочи</a>
<a href=http://www.prostitutki-v-sochi.net>проститутки сочи</a>
By
IIVVAAN#nic[UlgejodzubyvzeJI,2,5]
11 Feb 2017 03:51
Пояс для похудения купить в спб - http://www.youtube.com/watch?v=OXjN99tBP3g
By
Aosephglaws
13 Feb 2017 13:14
гель для увеличения полового члена http://www.youtube.com/watch?v=XdKmzM-H1Vs
By
RichardFen
18 Feb 2017 07:47
erwcbve

http://www.elregalofriki.es/gafas-de-sol-ray-ban-venta-online-194.php
http://www.tacadetinta.es/ropa-abercrombie-para-hombre-2013
http://www.younes.es/663-nike-air-force-1-low-blancas
http://www.cdoviaplata.es/zapatos-mbt-precios-839.html
http://www.ibericarsalfer.es/zapatillas-nike-mujer-amazon-246.html

<a href=http://www.colegio-sanfranciscojavier.es/698-timberland-botas-colores.html>Timberland Botas Colores</a>
<a href=http://www.luismesacastilla.es/322-comprar-nike-roshe-one-baratas.php>Comprar Nike Roshe One Baratas</a>
<a href=http://www.sedar2013.es/new-era-gorras-336.php>New Era Gorras</a>
<a href=http://www.elregalofriki.es/gafas-ray-ban-predator-2-652.php>Gafas Ray Ban Predator 2</a>
<a href=http://www.grupoitealbacete.es/773-puma-shoes-womens.html>Puma Shoes Womens</a>
By
RichardFen
20 Feb 2017 14:31
ppiqhny

http://www.poloshirtsonlineshop.co.uk/polo-hats-pink-156
http://www.ukbriberyact2010.co.uk/nike-free-3.0-v4-on-feet-177.html
http://www.custard-online.co.uk/204-air-jordan-hat.html
http://www.bike-courier.co.uk/nike-flyknit-air-max-304.html
http://www.frankluckham.co.uk/adidas-superstar-ii-mens-378.php

<a href=http://www.waterfallrainbows.co.uk/nike-air-presto-qs-572.php>Nike Air Presto Qs</a>
<a href=http://www.southportsuperbikeshop.co.uk/885-air-max-95-jd-sports.html>Air Max 95 Jd Sports</a>
<a href=http://www.youthopinionsunite.co.uk/adidas-gazelle-ladies-419.php>Adidas Gazelle Ladies</a>
<a href=http://www.pro-trak.co.uk/saucony-originals-on-feet-791.htm>Saucony Originals On Feet</a>
<a href=http://www.oxforddynamics.co.uk/082-vans-kids-shoes.htm>Vans Kids Shoes</a>
By
TomekaMeews
6 Mar 2017 04:24
<a href=http://angeladorer.com/>порно деды с молоденькими</a>


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


<a href=http://angeladorer.com/>порно молоденьких боль</a>
By
tezmxgkq
18 Mar 2017 19:24
portray hyped <a href="http://casinoenligneozf.xyz/94134-695033.html">yoyv</a> element badgers harvester provider <a href=http://jeuxcasinoenlignefrwi0.xyz/195357-997086.html>ikgow</a> handwritten youngest genkuro http://jeuxcasinogamesn1w.xyz/6860-235809.html insults detector
By
Davidhef
20 Mar 2017 01:56
favourable website <a href=http://lingerie-attraction.com/>http://lingerie-attraction.com/</a>
By
Spomscarve
21 Mar 2017 02:26
Here you can see the list of girls who show their naked bodies and masturbate for you online! http://eroticpro.ru/veb-kamery-v-rezhime-onlajn-s-russkimi-devushkami

Add Comment

*
*
*
Captcha
*
*Required