Skip to content

AutoFit: weight narrow and wide characters #1

Open

Description

@glenntosco

AutoFit estimates widths from character counts (Worksheet.Features.cs, Observe and ApplyAutoFitWidths). Narrow glyphs (i, l, 1, .) and wide ones (W, M, @) are counted the same, so columns of digits or capitals are slightly off.

Idea: a small per-character width table for Calibri (relative units), used in LongestLine. No font files or System.Drawing.

Done when: a test shows a column of WWWW is wider than a column of iiii, and existing AutoFit tests still pass.

Activity

  1. added
    enhancement
    good first issue
    on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions