POV-Ray : Newsgroups : povray.pov4.discussion.general : Addressing the secrete rotation in text{} object : Re: Addressing the secrete rotation in text{} object Server Time
3 Apr 2025 15:53:18 EDT (-0400)
  Re: Addressing the secrete rotation in text{} object  
From: William F Pokorny
Date: 19 Mar 2025 13:17:24
Message: <67dafc24$1@news.povray.org>
On 3/19/25 03:52, jr wrote:
> 'msgothic.ttc' (eg) works for me (alpha.9945627, beta.2) while 'NotoSansCJK.ttc'
> crashes, yuqk reports 'Invalid TT font headers...'.  looks like it all depends
> on the people putting together the TTF/TTC file(s).

In an offline discussion, jr helped me work through my own confusion 
with the .ttc support in POV-Ray.

I tried the 'CJK' .ttc fonts blindly on seeing the .ttc suffix.

Well, it turns out OpenType fonts also use the .ttc suffix and POV-Ray 
doesn't support them. I didn't know. My Ubuntu distribution puts the 
OpenType fonts in another directory:

/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc

rather than:

/usr/share/fonts/truetype/

but I didn't notice...

---

If you are on linux and have the .ttc collection in a personal directory 
you can use the 'file' command:

file NotoSansCJK-Regular.ttc

and it will kick out text about the file. Part of which will includes 
detail on the internal font types stored. For example:

NotoSansCJK-Regular.ttc: OpenType font collection data, 1.0, 10 fonts, 
at 0x34 OpenType Font data, 16 tables, 1st "BASE"

or 'file LiberationMono-Regular.ttf' :

LiberationMono-Regular.ttf: TrueType Font data, 18 tables, 1st "FFTM", 
30 names, Macintosh

---

So, I'm leaving the .ttc support in place with yuqk and I'll add yuqk 
documentation that the POV-Ray support for .ttc files is only for 
TrueType collections.

Bill P.


Post a reply to this message

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