Max Size of a Glyph

Get help with FontCreator here. Please do not post feature requests or bug reports here.
Post Reply
ClintGoss
Posts: 33
Joined: Mon Nov 06, 2017 2:18 pm

Max Size of a Glyph

Post by ClintGoss » Mon Apr 15, 2019 11:41 am

It looks like FC limits the size of a glyph to the (symmetrical) range -16,383 to +16,383 (from zooming out and in on a design window). Is there a reason for this that I am missing?

The OPSpec 1.8.3 declares these points as int16 (I'm looking at the glyph table, Simple Glyph Description, xCoordinates[] array). This would seem to imply an (asymmetrical) range of -32,768 to +32,767.

DelmarGin
Posts: 1
Joined: Wed Apr 17, 2019 8:53 am

Re: Max Size of a Glyph

Post by DelmarGin » Thu Apr 18, 2019 11:30 am

Wouldn't an asymmetrical range throw everything out of balance? I guess not.

ClintGoss
Posts: 33
Joined: Mon Nov 06, 2017 2:18 pm

Re: Max Size of a Glyph

Post by ClintGoss » Thu Apr 18, 2019 6:21 pm

I think the "asymmetrical" comes from two's complement math, which generally can represent one more negative number than positive number for a given number of bits.

My core question is:

For an [X,Y] point in a glyph, what is the allowed range for X and Y?

I'm really just trying to find the answer to this question. I'm wondering if FC is limiting the range to -16,383 to +16,383 because the OpenType spec limits the range, or for some other reason.

The int16 data type would seem to imply a range of -32,768 to +32,767 ...

-Clint

Post Reply