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.

worrying size changes round-tripping, lost 10% of file size.

See original GitHub issue

Two fonts dropped about 10% of file size after going through ttx and back - without any message, etc. again apologies this is with fedora’s ttx.

-rw-rw-r--. 1 Hin-Tak Hin-Tak 6656004 Oct 27 00:20 cfmingeb-ttxed.ttf
-rw-rw-r--. 1 Hin-Tak Hin-Tak 2950628 Oct 26 23:47 cjsongeb-ttxed.ttf

-r--r--r--. 1 Hin-Tak Hin-Tak  7235272 May 21  2003 cfmingeb.ttf
-r--r--r--. 1 Hin-Tak Hin-Tak  3275360 May 21  2003 cjsongeb.ttf

I believe they were publicly available and free-use at some point in the past (judging from where I keep them), though I do not know where I got them from.

173907f1f3f4404d4617c9fa6318907a  cfmingeb.ttf
4f7c3c0b2b99648dcd8457b96614038b  cjsongeb.ttf

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:25 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
justvanrossumcommented, Oct 27, 2016

The flaws we’re talking about are repeated coordinates, that ttx properly packs using the flagXsame or flagYsame flags, but wasn’t in the originals. That information is not retained in the XML format, as it is of no importance to the semantics of the data.

0reactions
HinTakcommented, Oct 28, 2016

Yes, Werner summarized the problem with general file fuzzer quite well - they generate piles of invalid fonts which do not pass the most rudimentary checks. It takes an incredible amount of computing time/resources with the general file fuzzing approach to explore rarely-used code paths and the darker corners of font engines.

I managed to “fuzz” some fonts to get at a few specific corner cases, by inserting PUSHW’s randomly in the hinting instruction stream. (perhaps POP’s would do also). This approach has its limits as the font engine soon aborts due to stack overflow/underflow. This also applies to hinting only, and not contours.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Is My File Size So Huge? | CreativePro Network
The solution: Open your file in Photoshop, choose Image > Image Size, turn off the Resample Image checkbox (if you don't want the...
Read more >
The file size of an Excel workbook may unexpectedly increase ...
Open the shared workbook in Excel 2007. Click the Review tab. In the Changes group, click Share Workbook. On the Editing tab, ...
Read more >
Re: Help please! DNG and TIFF file size.
You may want to try playing around with a few things: Review the size of your DNG after import to the original RAW...
Read more >
Ways to Reduce File Size.pdf
To help avoid potential frustration, below are some easy ways you can reduce file size. Use Styles to Format Your Thesis. Adding manual...
Read more >
Data Networks Summer 2007 Homework #3
Problem 1 (20 points) Host A is transferring a file of size L to host B using a TCP connection. Host A sends...
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