Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

PixelCNC Has Moved: deftware.org

CAM software developed by artists for artists to create unique and original works on a 3-axis CNC router or mill. · By Deftware

Text Layer Question

A topic by valhallaCNC created 48 days ago Views: 57 Replies: 3
Viewing posts 1 to 3
(+1)

Charlie..

I have a street sign project I'm starting. My canvas size is 5.5 x 32 for the first one, I make my text layer with street name EG. Hollow Cavern Road. I size it to fit . My question is when I edit the words ,even taking the "d" out of road and putting it back the text layer changes size. the percentage in the font stays the same but I have to resize the text layer after editing.  Every sign will have a different length, but I want the font size identical. The way I'm doing it now is trial and error by matching letter size. I must be missing something..Is it something in my setup that's wrong. I've tried several things, the text layer dynamically changes it's what is messing me up I think. Any help would be great..

Thanks Joe

Developer

Hi Joe,

The text-layers will dynamically resize themselves per the text size used when editing them, and any manual rescaling of the layer will be replaced. The best thing to do is not rely on manually scaling text-layers and instead only use the text size parameter while the text-editing mode is enabled to get it to the scale you want, and let PixelCNC determine the size of the layer for you.

The ability to manually scale a text-layer is really only meant for fine-adjustment when the text will no longer need any further editing - which includes changing the font and character spacing. :]

 - Charlie

(+1)

Charlie...

That works fine , what I did on the first one I resized text layer manually to fit better. I compacted and made the font taller. When I did that I changed the whole font characteristic so there is no way for me to duplicate it easily. No way to make the text layer static ? The percent would work then ? As usual I do things the hard way....

Thanks Joe..

Developer

Yes if you rely on the font size parameter when text-editing to get the layer how you want then making copies of the layer to create more text with the same font and scaling shouldn't be an issue. It's only when manual scaling is applied after editing a text-layer that you risk having to manually re-scale it again if the need for going back into the text-editing mode arises, as PixelCNC enforces a certain pixel density for text-layers so that there's effectively a uniform relationship across all text-layers using the same font and font size. If one layer is scaled differently then changing its font size to match another layer that isn't manually scaled will end up requiring the use of a different font size just to get the same letter sizing.

The font size controls the number of pixels used to rasterize the text using the selected font, and accommodating for manual scaling means a user could effectively make the font size inconsistent, and scale up a text-layer with a small font size, which would result in a text-layer with very pixelated looking text! That's why PixelCNC calculates a new size for given text/font/size, to maintain a consistent pixel resolution for the text itself.

I suppose it's theoretically possible for PixelCNC to somehow determine the optimal text rasterization resolution for a given layer size, but then there'd be no way to control the absolute lettering sizing so that it's consistent across multiple text-layers, then you'd be stuck with manually scaling text exclusively.

- Charlie