question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ttx: is creating empty XML files necessary?

See original GitHub issue

I often (sometimes) run into the following scenario:

$ ttx -t os/2 font.otf
Dumping "font.otf" to "font.ttx"...
No 'os/2' table found.
$ ttx -t os_2 font.otf
Dumping "font.otf" to "font#1.ttx"...
No 'os_2' table found.
$ ttx -t OS/2 font.otf
Dumping "font.otf" to "font#2.ttx"...
Dumping 'OS/2' table...

In total, three files are created, two of them empty. This is of course a result of user error – but I wonder if it would make sense to just not create a ttx file in scenarios 1 & 2?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
behdadcommented, Aug 19, 2022

Best to delete the output file upon error.

0reactions
frankrolfcommented, Jan 29, 2019
ttx -t name Charter.ttc
Dumping "Charter.ttc" to "Charter.ttx"...
ERROR: specify a font number between 0 and 5 (inclusive)

Why does this command need to create a zero-kB file?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To: Create an empty XML file - Esri Support
To manually create an empty XML file: Open a text editor such as Notepad. Copy the following lines and paste them into the...
Read more >
Open XML resources - Tosca - Tricentis
Load XML files. Use the Module Open/Create XML file to create an XML file or to load it as a resource. This Module...
Read more >
Identify empty xml files? - Unix & Linux Stack Exchange
I have a requirement to identify and write all xml file names which are empty to a text file for reporting purpose. Empty...
Read more >
XML logging creates empty files :: Support Forum - WinSCP
Hi, I recently tried to activate logging into an XML format. When I open the XML file generated this way, all I get...
Read more >
What is a NULL XML file? - Stack Overflow
An XML document, which is standard terminology, must have at least a document element – an empty file is not a well-formed XML...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found