Jump to content

Recommended Posts

Posted

I am facing a little challenge for which I did not find a good solution yet.

I need to make a "pixel perfect" PNG for printing on a low DPI device (180 DPI).
My doc is 4.5m x 60mm @ 180 DPI.

I am using a low DPI friendly font.
If I don't enable pixel view mode, things look great.
image.thumb.png.d99f62fac75d8a80d27c85b28a09107a.png

Unfortunately, my final PNG will not look like that.

Turning on pixel view mode gives me a better preview of what will be rendered:

image.thumb.png.463975088ac93c746c23d2322efeb95b.png

I tried a few options to snap to whole pixel and such but no option worked well.

Force pixel alignment is consistant..ly bad:

image.png.47faa56f2f50cbe996ab9cfca49998ac.png

Without forcing, I get more control.... but that's hell to manage:

image.png.ba4ad554ef1d7c27e3588310ffdc9cc2.png

and can even lead to very bad results (below is a 45...):
image.png.278d9b7e14d3b3cfca48e9ad42a71657.png

How could I get a render that is exactly what I see when not turning pixel view mode ?
I am not trying to get subpixel details to show as whole pixels. I am not trying to make pixel art, just trying to have a doc that will render best on my low DPI printer.

I am currently using the C&C Red Alert font, maybe another one would do better ?
My export is 31x425 px and I would be happy if I would not have to "draw" my letters per hand :)

 

Posted
6 hours ago, Chevdor said:

I am using a low DPI friendly font.

Not sure what that means. Back in the day there were fonts which were Pixel aligned. The glyphs and letter spaces were made to be Pixel perfect, as long as you used Pixels for the size of the font. Try that. Change your Preferences to not use Points for lines and fonts.

ScreenShot2025-04-11at8_28_33AM.png.fd9f4a73b2abcc95d12edcaef39326d8.png

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted
12 hours ago, Chevdor said:

I need to make a "pixel perfect" PNG for printing on a low DPI device (180 DPI).
My doc is 4.5m x 60mm @ 180 DPI.

I would begin by setting the document size to pixels (entire values) and keep its "dpi" to 180 (if you only use solid black, K100).

 

5 hours ago, Old Bruce said:

Back in the day there were fonts which were Pixel aligned. The glyphs and letter spaces were made to be Pixel perfect, as long as you used Pixels for the size of the font. Try that.

For example, from the excellent Dutch Underware foundry, there's this font: 
https://www.underware.nl/fonts/unibody/features/

You can use it at 8 px or whatever multiple of it (16, 24,…) It's free but you have to comply to the EULA.

Affinity Suite 2.5 – Monterey 12.7.5 – MacBookPro 14" 2021 M1 Pro 16Go/1To

I apologise for any approximations in my English. It is not my mother tongue.

Posted

I recommend good old PC Bios Pixel fonts, see link below.

Create a grid in the exact pixel size of the font. set snapping accordingly.
Set the size exactly in pixel. Plan pedantically.

sizes may need to be adjusted by +1px 

 

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

I tried some unibody bu the issue remains.

Here is the preview (unibody at the top).

image.png.457933226925662728d2c9fdd3f10b11.png

but as soon as I turn on pixel view mode (which is a good representation of how the output will be rendered), I get the same issue again:
image.png.d4ff5ec0feef03b2293a81e96eb73e45.png

 

If I dont force pixel alignment and move by 0.1mm, it gets totally screwed up:

image.png.6a8a3aa9fc464f1e6f03a3adc5c484c5.png

Posted
  1. You must enforce pixel alignment (starting position of layer)
  2. you must use the font in the exact size specified.
  3. you cannot stretch it, aspect ratio must stay 1:1

and better deactivate anti-aliasing in layer blend settings.

Why do you think you can move it to non-pixel aligned positions without getting a mess? This is not meant in any way offensive. Keeping the layer pixel aligned is essential precondition for avoiding the issue.


use px as document units will help you. Anything else will not work in practice 

 

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

> You must enforce pixel alignment (starting position of layer)

I do and that makes sense. However, since it does not work so far, I am experimenting...

> You must use the font in the exact size specified.

I am using 5pt

> you cannot stretch it, aspect relation must stay 1:1

no stretching, no rotate.

> and better deactivate anti-aliasing in layer blend settings.

Yes, I did force it to off.

> Why do you think you can move it to non-pixel aligned positions without getting a mess?

I don't but as mentioned so far I had little success following that I think makes sense :)

> use px as document units. Anything else will not work.

Ok, that may be the issue as I need to use mm here. I will try px though.

 

That unfortunately does not seem to cut it.

Posted

 

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted
Just now, Chevdor said:

I am using 5pt

Depending on document dpi this gives 10px. The font is designed for 8px.

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

The font is a bit tricky. 
I suggest to create a text layer, and enter letter X only.

then use move tool to size the letter in 1px steps until you get a perfect sharp rendering. Then enter additional letters.

if you add Q, the size increases. The issue is that the. Font does not fill the px completely, instead it leaves about 1/8px unfilled. This irritates the transform panel, so it reports only the „used“ size.

i don’t like this font for this technical property.

the bitmap fonts I listed earlier don’t have this issue.

 

IMG_2620.png

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

The sligh dark halo around the fonts is eliminated when deactivating AA. Another issue with this font.

AA active

IMG_2624.thumb.png.6949f51cd08bf977951c112086a6a46d.png

AA off

IMG_2623.thumb.png.3313467e8db737e631f8f32bad18b88b.png

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

Thanks for your help and patience :)

Still no success but your linked document seems to be spot on.

From my test, using a document in mm is ok if "force pixel alignemnt" is on.
I set DPI to 180 to match the printer I am using.
That is probably what leads to the issue. I checked many of the other options and they look fine.

 

Posted

Do manually calculate the pixel size based on mm and dpi. Setup the document to use px. Forget about physical units when trying to get pixel perfect designs. Use 144dpi, so 1pt = 2px will avoid some issues.

 

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

These seems to be the required settings for the font to work.

  1. add text frame
  2. enter letter capital X
  3. use move tool to get 5x7px 
  4. font size shows 8.09 (ignore it)
  5. paste your text into the frame (plain text. No formatting)
  6. set AA to off

 

IMG_2626.png

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

I don't care much what font I'd use. I mainly care about rendering numbers.
So if you say this one font is not appropriate, I will gladly move to another one !
I will start bothering about "nice" fonts once I get the issue fixed :)

Posted

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

The Toshiba 8x8 must be sized 7x7px to get perfect result.

The limitation: all letters have same width. 
If you need a variable width fonts, I have not yet identified one wich I can recommend (just no need/time spent on that topic)

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted
On 4/11/2025 at 11:22 PM, Oufti said:

I would begin by setting the document size to pixels (entire values) and keep its "dpi" to 180 (if you only use solid black, K100).

 

For example, from the excellent Dutch Underware foundry, there's this font: 
https://www.underware.nl/fonts/unibody/features/

You can use it at 8 px or whatever multiple of it (16, 24,…) It's free but you have to comply to the EULA.

You recommended the unibody font.

I find it almost unusable with Affinity because the font does not render 7px (in font size 8 and 72dpi document) and it intentionally leaves a small edge around every block.

this leads to tons of issues:

  • impossible to get the size right
  • you get halo as antialiasing kicks in
  • black becomes slightly grey.

if you found a way to practically use this fond please share.

in my experience it is no good choice.

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

OK, making slow progress :)
I used a font you mentioned Mx437 ATI 8x8.
I had to use the artistic text tool to make it fit.
I manged to get a X to render as expected. However, adding more letters shows I am not there yet.

Example:

image.png.8dc8832bdf7573775b91e0a4b69df53a.png

shifted 1 px down:

image.png.d8d2a0f7135f902769e16624fb28e8dd.png

Shifted 1 px right:
image.png.6411449324565acc5745d045199a08a6.png

So getting closer but I guess I am still missing something.
To be honnest I did not expect to need so many trickery to get a "pixel" font to render perfect given the target DPI of my printer.
I am using 144 as you suggested, I yet need to test what my 180 DPI printer will do with that.

Posted

Can you please

upload the affinity file

and the text you want

i will put it in for you

and a rectangle as placeholder where to put

 

 

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted
36 minutes ago, NotMyFault said:

the unibody font.

I find it almost unusable with Affinity because the font does not render 7px (in font size 8 and 72dpi document) and it intentionally leaves a small edge around every block.

this leads to tons of issues:

  • impossible to get the size right
  • you get halo as antialiasing kicks in
  • black becomes slightly grey.

if you found a way to practically use this fond please share.

I have followed some of the advice you've linked to earlier these days: https://affinityspotlight.com/article/hi-res-iconui-design-can-be-pixel-perfect

This works alright for me with Unibody:

  1. created an ADe artboard at 72 ppi (or 144 for retina displays)
  2. antialiasing forced off on the whole artboard
  3. everything pixel aligned, of course
  4. use artistic text frames
  5. always align them at top left corner
  6. text typed at 8, 16, 24, 32 etc. pt (or start at 4 pt for retina)
  7. export as PNG, for instance Nearest Neighbor, Paletized B&W

ade_unibody_pixelperfect.afdesign

ade_unibody_pixelperfect.png.zip

ade_unibody_pixelperfect.png.339fde2a983cc600906db620b2223032.png

MacBookAir 15": MacOS Sonoma > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 18 > Affinity v2

Posted
1 hour ago, NotMyFault said:

it intentionally leaves a small edge around every block

This is very likely a "design gimmick" when used as a regular font at odd sizes where "pixel perfection" doesn't matter and only has to be emulated or faked for an effect. With Antialiasing Force Off, these gaps between the squares will be filled.

MacBookAir 15": MacOS Sonoma > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 18 > Affinity v2

Posted
1 hour ago, Chevdor said:

I used a font you mentioned Mx437 ATI 8x8.
I had to use the artistic text tool to make it fit.
I manged to get a X to render as expected. However, adding more letters shows I am not there yet.

Works for me, using the same procedure as above:

ade_mx437ati8x8_pixelperfect.afdesign

ade_mx437ati8x8_pixelperfect.png.zip

ade_mx437ati8x8_pixelperfect.png.fcb80c9956752aea5eefcec51ca8b2ec.png

^ Note that this preview may appear blurry in browser. Download the zip instead and open it offline in APh to check for "pixel perfection".

MacBookAir 15": MacOS Sonoma > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 18 > Affinity v2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.