objective c - iOS Core-Graphics: Using CGContext setters to render a sharp pdf -
i'm working on pdf renderer using cgpdf , catiledlayer in ios , except fonts it's if vectors close , kind of fuzzy i'm not wearing glasses. solution i'm looking , i'd love make grey pixels near edge black. guessing possible cgcontextset"whatever"() method. here photo illustrate.
currently rendering as...
adobe reader app rendering as...
and looks sharp, if know method uses (or how similar) i'll ecstatic
but i'm trying work around turn grey pixels black. like...
again using cgcontext setter methods , noticing changes, not documentation clear on each does, explanation or insight solutions appreciated. in advance.
it looks adobe's renderer aligning bottoms of glyphs whole pixels, yours not.
these 2 messages on quartz-dev mailing list (one, two) suggest should try changing settings subpixel positioning , subpixel quantization, using following functions:
cgcontextsetallowsfontsubpixelpositioning cgcontextsetshouldsubpixelpositionfonts cgcontextsetallowsfontsubpixelquantization cgcontextsetshouldsubpixelquantizefonts
either turn off subpixel positioning entirely, or turn on both subpixel positioning , subpixel quantization. you'll have experiment.
post-processing quartz's rendering unlikely good, you've demonstrated.
Comments
Post a Comment