How does FontForge insert missing font tables?

Victor Suadicani via fontforge-devel <[email protected]> Thu, 4 May 2023 09:55:49 +0200
Newsgroups gmane.comp.fonts.fontforge.devel
Message-ID <CANDNeq29UJPk+5Bg1DAf2M0E0yQK3UPLHzJZTvcvAeEQo_WYGw@mail.gmail.com>
--===============5882125565268738839==
Content-Type: multipart/alternative; boundary="000000000000dc9ce505fad98044"

--000000000000dc9ce505fad98044
Content-Type: text/plain; charset="UTF-8"

Hi,

I've noticed that FontForge fills in missing font tables when saving fonts.
For example, I've seen that FontForge fills in OS/2 tables and cmap tables
when saving a font as OpenType (CFF) even when they don't appear in the
original font.

I'm interested in how FontForge does this? Is it just "dummy data" that is
filled into these tables or is something more clever done? From a manual
inspection of the saved font it doesn't look like dummy data, so I'm quite
curious how FontForge achieves this.

I've tried searching in the code but it's quite opaque to me. If anyone
could give me some insight or point me in the right direction, that'd be
greatly appreciated :)

Best,
Victor Nordam Suadicani

--000000000000dc9ce505fad98044
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>I&#39;ve noticed that Fo=
ntForge fills in missing font tables when saving fonts. For example, I&#39;=
ve seen that FontForge fills in OS/2 tables and cmap tables when saving a f=
ont as OpenType (CFF) even when they don&#39;t appear in the original font.=
</div><div><br></div><div>I&#39;m interested in how FontForge does this? Is=
 it just &quot;dummy data&quot; that is filled into these tables or is some=
thing more clever done? From a manual inspection of the saved font it doesn=
&#39;t look like dummy data, so I&#39;m quite curious how FontForge achieve=
s this.</div><div><br></div><div>I&#39;ve tried searching in the code but i=
t&#39;s quite opaque to me. If anyone could give me some insight or point m=
e in the right direction, that&#39;d be greatly appreciated :)<br></div><di=
v><br></div><div>Best,</div><div>Victor Nordam Suadicani<br></div></div>

--000000000000dc9ce505fad98044--


--===============5882125565268738839==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============5882125565268738839==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
fontforge-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fontforge-devel
http://fontforge.10959.n7.nabble.com/Developer-f3.html

--===============5882125565268738839==--