Skip to content

Feature request: allow fractional border radius (e.g. 0.5, 0.4) #553

Open

Description

@afonsosantos

Summary

The border radius of boxes/rectangles only accepts whole numbers (1, 2, …). Please allow fractional values like 0.5, 0.4, etc.

Problem

On larger boxes, a radius of 1 already gives very visibly rounded corners, and 0 gives square corners. There's nothing in between, so we can't get a subtle rounding on bigger frames on our labels.

Proposed solution

  • Let the border radius field accept decimal values (e.g. step 0.1), at least between 0 and 1.
  • The canvas preview and the exported ZPL should both match the chosen value.

Notes

ZPL's ^GB corner rounding parameter only takes integers 0–8, and it's relative to the box's shorter side. So a fractional radius might need a different approach when exporting, for example:

  • drawing the corners separately (^GC arcs / small ^GB segments) with straight lines between them, or
  • generating a ^GF graphic for the rounded frame.

If that's out of scope, it would also help just to document in the UI that the radius maps to ^GB's integer rounding.

Activity

  1. u8array commented on Oct 15, 2026

    @u8array
    Owner

    Thanks for the request!

    As you mentioned, ^GB only supports integer values for corner rounding, so simply allowing decimals in the input wouldn't work.

    I've considered compound objects before, but put the idea aside because it seemed out of scope at the time.

    Your request brought that idea back to mind. I'd rather explore that approach than add a workaround just for rounded corners, but I'm not sure yet how to integrate it without making the designer harder to use.

  2. self-assigned this
    on Oct 15, 2026
  3. added
    enhancement
    on Oct 15, 2026
  4. u8array commented on Oct 16, 2026

    @u8array
    Owner

    The compound approach is still just an idea. I'm not sure whether it makes sense to implement it at all, or what the scope should be, so it's low priority for now.

    Following your suggestion, I've replaced the number input with a dropdown of the supported integer values. I think that's the better UX.

  5. afonsosantos commented on Oct 17, 2026

    @afonsosantos
    Author

    Thanks, the dropdown is a good call. It makes the ^GB limitation obvious and stops people from typing values that the export can't produce.

    Agreed that compound objects are the cleaner long-term fix, and I'm fine with it staying low priority.

    Feel free to close this one, or keep it open to track the compound idea, whichever you prefer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions