MicrosoftDocs / typography-issues

Creative Commons Attribution 4.0 International
47 stars 21 forks source link

CFF/CFF2: Provide an exact definition of bounding boxes for CFF glyphs #201

Open be5invis opened 5 years ago

be5invis commented 5 years ago

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

PeterCon commented 4 years ago

i've asked Adobe to provide draft text for this.

behdad commented 4 years ago

Where is this needed? A bounding box is a general concept. You can compute it however suits your needs. Why does anything need to be specified in the spec regarding this?

PeterCon commented 4 years ago

@be5invis : Please clarify the requirement (see Behdad's comment).

be5invis commented 4 years ago

@PeterCon Computing entries in hmtx and vmtx's sidebearings, and head's x/y min/max needs a definition of bounding box of glyphs, and unlike TrueType, CFF glyphs' bounding box is not clearly defined. ref: https://typedrawers.com/discussion/3659/are-off-curve-points-considered-for-the-bounding-box#latest

sairuspatel commented 3 years ago

I propose we defer this to after OT 1.8.4.

behdad commented 3 years ago

Bounding box should be defined as min/max of x/y of control points (on-curve and off-curve points), NOT the curve itself.