Skip to content

Drawing crisp single pixel width text #138

Closed
@KLuuKer

Description

@KLuuKer

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of ImageSharp
  • I have verified if the problem exist in both DEBUG and RELEASE mode
  • I have searched open and closed issues to ensure it has not already been reported

Description

With the old System.Drawing i am using ZXing.Net to make it render a image like this
crisp-text

i tried allot of varations with the following (enable\disable AA, font sizes, pen width's, even dpi)

var top = height - 4;
var font = new Font(FontCollection.SystemFonts.Find("Arial"), 10f, FontStyle.Regular);
var pen = new Pen(Color.Black, 1);
img.DrawText(orderTicket.Code, font, pen, new System.Numerics.Vector2(50, top), new TextGraphicsOptions(false));

but i cant get that nice crispy single pixel wide text (no need to concern yourself with the barcode that works just fine)

fat
no-aa
no-aa-hor-dpi

maybe @tocsoft can help with this

System Configuration

  • ImageSharp version: 1.0.0-alpha3-00005
  • ImageSharp Drawing version: 1.0.0-alpha3-00005
  • Environment (Operating system, version and so on): windows 10 x64
  • .NET Framework version: net461 (but if this works i'm switching to netcoreapp1.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions