POV-Ray : Newsgroups : povray.general : Fonts Rant : Re: Fonts Rant Server Time
25 Apr 2024 19:26:41 EDT (-0400)
  Re: Fonts Rant  
From: clipka
Date: 14 Jan 2019 22:29:58
Message: <5c3d53b6$1@news.povray.org>
Am 11.01.2019 um 04:01 schrieb clipka:

> Also, I have decided to try changing the font handling from our own 
> dated code to using the FreeType library. That way I won't be tempted to 
> work around such crap. Them old fonts no longer work? Tough luck. If the 
> lib won't handle them, then maybe, just maybe, the fonts really are the 
> pieces of shit I'm calling them.

Work is progressing. And it looks like I'll be ripping out the text 
primitive entirely.


Well, /almost/ entirely that is. The parser will still understand the 
`text` syntax. But instead of implementing it via a dedicated geometric 
shape it will map it to a union of `prism` objects. (Theoretically a 
single `prism` object would do in typical cases, but turns out to be 
noticeably inferior in terms of performance.)

Under the hood, the text primitive has essentially been duplicating 
prism functionality all along, except that it is limited to 2rd order 
splines. While that provides some benefits in terms of performance, it 
also means it's not up-to-date to team up with the FreeType library, 
which supports various non-TrueType font file formats, including some 
which are based on 3rd order splines.

So rather than investing any time and effort into refurbishing the 
somewhat redundant text primitive, I've instead invested some time and 
effort to see if it can be replaced with the prism primitive entirely. 
So far it seems as easy as eating pancakes.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.