# Displaying Text using vector graphics

**URL:** <https://discuss.pencil2d.org/t/displaying-text-using-vector-graphics/8378>\
**Category:** General Discussions\
**Created:** [15 September 2024 16:27 UTC](https://discuss.pencil2d.org/t/displaying-text-using-vector-graphics/8378 "2024-09-15T16:27:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![StopMotionVector](https://discuss.pencil2d.org/user_avatar/discuss.pencil2d.org/stopmotionvector/32/1901_2.png) [@StopMotionVector](https://discuss.pencil2d.org/u/StopMotionVector)\
**Post date:** [15 September 2024 16:27 UTC](https://discuss.pencil2d.org/t/displaying-text-using-vector-graphics/8378/1 "2024-09-15T16:27:59Z")

</div>

The first stage is to produce the text, using Inkscape. The image is then transfered to Pencil2D using a .PNG file and loaded into a bitmapped layer.

 ![Vector_Text](https://discuss.pencil2d.org/uploads/default/original/2X/8/81ee5cfb5a7d074eeb108bf11565e14ea0017c55.png)

This is then overdrawn using the Polyline Tool.

 ![Vector_Text-2](https://discuss.pencil2d.org/uploads/default/original/2X/5/577055a28d9a044a9b895c544593b317a79b81d9.png)

This initial tracing requires a little editing,

 ![Vector_Text-3](https://discuss.pencil2d.org/uploads/default/original/2X/1/1d5cb5e9941cbf2ccf41007e5d673cc7f2ada7ce.png)

When complete this is then filled. Then the magic of vector images can commence.

The image, of text in this case can be enlarged. Because it’s a vector image, it does not pixelate.

![Vector_Text-4](https://discuss.pencil2d.org/uploads/default/original/2X/d/dfbdc05b244e1a422360579ee6ba991024388e5b.gif)

That’s only the start, of the magic of vector images, the image colour can easily be changed, since the image is converted to bitmapped image at presentation, the colour doesn’t have a problem with the feathered edge!

The project file is [Vector\_Text-4.pclx](https://discuss.pencil2d.org/uploads/short-url/7oksIY49FrtbgxjpOnxitfRuGIS.pclx) (56.0 KB)

![Vector_Text-5](https://discuss.pencil2d.org/uploads/default/original/2X/4/43f418a380ec57e825d9c9e00a5e678ad872cd7a.gif)

The project file is [Vector\_Text-5.pclx](https://discuss.pencil2d.org/uploads/short-url/tyzz0Rl0nzEYCb5ev6DLJ8wlgNS.pclx) (56.1 KB)

---

<div class="post-metadata">

**Author:** ![Starter](https://discuss.pencil2d.org/user_avatar/discuss.pencil2d.org/starter/32/2567_2.png) [@Starter](https://discuss.pencil2d.org/u/Starter)\
**Post date:** [16 September 2024 14:29 UTC](https://discuss.pencil2d.org/t/displaying-text-using-vector-graphics/8378/2 "2024-09-16T14:29:36Z")

</div>

I like it! The advantage of vector graphics is you can expand and reduce the image without Pixelisation.

When using vector graphics, any images have to be converted into a bitmapped one, because the screen is a bitmapped device. But this conversion happens at the end of the process of drawing, not at the time of drawing.

Thus the line around the shape is feathered, that’s the process used to make the edge look smooth as possible, during the process of sending the image to the screen.

---

<div class="post-metadata">

**Author:** ![Starter](https://discuss.pencil2d.org/user_avatar/discuss.pencil2d.org/starter/32/2567_2.png) [@Starter](https://discuss.pencil2d.org/u/Starter)\
**Post date:** [18 September 2024 09:31 UTC](https://discuss.pencil2d.org/t/displaying-text-using-vector-graphics/8378/3 "2024-09-18T09:31:28Z")

</div>

![Test-2](https://discuss.pencil2d.org/uploads/default/original/2X/f/fef9f421aea86e4abf53f897f894c05240f3b4e8.gif)

Unlike using vector graphics, when you enlarge a bitmapped graphic you get pixcellation as shown below.

 ![Test_Bitmapped](https://discuss.pencil2d.org/uploads/default/original/2X/b/be0a07bd5ab0b2ae7c657f7b9827147f98b36b65.png)

The only way to acheive zooming in, as per the top animated .GIF file then you will require an image of 3840 by 2160 pixcels, which when saved produces a much larger file. Which is a file of 176 Kbytes, compared with 18.7 Kbytes for the vector text image.

That’s the size of a single frame drawing. If there are 20 frames then the memory required is 20 x 176 Kbytes which equals 3.520 Mbytes.

Using bitmapped images also requires that you think ahead, if you want to zoom in. You require to workout how large you require the image before you zoom in!

---

<div class="post-metadata">

**Author:** ![StopMotionVector](https://discuss.pencil2d.org/user_avatar/discuss.pencil2d.org/stopmotionvector/32/1901_2.png) [@StopMotionVector](https://discuss.pencil2d.org/u/StopMotionVector)\
**Post date:** [21 September 2024 11:07 UTC](https://discuss.pencil2d.org/t/displaying-text-using-vector-graphics/8378/4 "2024-09-21T11:07:13Z")

</div>

The approach to the production of the text using a .PNG image as a guide, which was produced using Inkscape.

This approach makes the lines that form it flow, rather than a more correct, but stilted form. I think that this adds personality.

---

<div class="post-metadata">

**Author:** ![Starter](https://discuss.pencil2d.org/user_avatar/discuss.pencil2d.org/starter/32/2567_2.png) [@Starter](https://discuss.pencil2d.org/u/Starter)\
**Post date:** [22 September 2024 10:46 UTC](https://discuss.pencil2d.org/t/displaying-text-using-vector-graphics/8378/5 "2024-09-22T10:46:25Z")

</div>

If you are producing text, to be displayed in Pencil2D on a bitmapped layer, then my advice is to produce it at least 120% the largest size that you conceive that you require.

It is possible to write software to be able to make enlargement of bitmapped images, but the task is very complex amd as a result most software producers, including Pencil2D, don’t implement this function.

This is because bitmapped graphics can be reduced in size, without distortion, particularly if the edge is feathered.

Feathering us a technique to make the outer edge of the shape appear to be smooth. When using bitmapped tools the Feathering is applied at the drawing stage.

> [@I really like the features of the the New Camera](https://discuss.pencil2d.org/t/i-really-like-the-features-of-the-the-new-camera/8389):
>
> The .GIF animation below is an experiment which I undertook to explore the new camera features. I’m impressed! [Smooth] The project file is [Smooth.pclx](https://discuss.pencil2d.org/uploads/short-url/jhw9xrGWt5aXhGb03WpD6lQPiNf.pclx) (2.5 KB) [Smooth-2] The project file is [Smooth-2.pclx](https://discuss.pencil2d.org/uploads/short-url/fqkfPo1pC7On89ihodlY8gKaLW2.pclx) (3.3 KB) The operation of Pencil2D is very intuative, but I missed the camera zoom menu because of it’s placing at the bottom of the working window. This was corrected by watching David Lamhauge’s video on the New Camera Branch.

In contrast when using vector tools, the feathering is applied at the conversion to a bitmapped format. This allows it to be adjusted to make the edge look smooth. When the camera zooms in, when using vectors, the Feathering is adjusted.
