cparnot / ASCIImage

Create UIImage / NSImage instances with NSString and ASCII art

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: rendering of single pixels on iOS

cparnot opened this issue · comments

  • Add a test
  • Fix (it seems to be working)

See also comment here: http://cocoamine.net/blog/2015/03/20/replacing-photoshop-with-nsstring/#comment-1931695031

In shapesFromNumbersInStrictASCIIRepresentation: Unless I am misreading the code, if numberOfPoints==1 it goes to CGPoint vertex, and never executes the single pixel part.

Fixture rendered correctly:

· · · · · · · · ·
· 1 · 3 · 5 · 7 ·
· · · · · · · · ·
· A · · C · · E ·
· · · · · · · · ·
· a · · · · · e ·
· · · · c · · · ·
· · · · · · · · ·

1x: fixture11-antialiased 1x

2x: fixture11-antialiased 2x

3x: fixture11-antialiased 3x