text - Fill Font Characters with White? -


my font has empty "interior". show below:

font white background:

white background

font blue background:

blue background

how can make "interior" of text white, without using background? i'll using unity game engine.

and of course, can't edit .ttf file. @itchee pointed out: ttf font in 1 color only. can specify opaque , transparent parts (technically, opaque parts specified , else transparent). application displays font can chose 1 single color opaque part. cannot make "some parts black , parts white". question how achieve want using unity game engine. c# scripts welcome.

as @fafase said, filling algorithm, each character, looking surrounded zone , filling them ideal.

you use bitmap fonts. aren't supported natively unity, can use asset asset store called cjfinc: bitmap font tools. if aren't willing pay found nice tutorial here.

but far, flexible idea, , create second font can place behind first font. keep original font @ black color. second font simple shapes fit shape of fill, , set whatever color want. here's quick sketch of mean:

explain

you can use fontforge create custom fonts. might take quite bit of time, work consistently, simply, , without many changes scripts.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -