# Node only shows part of the text

**URL:** <https://forum.graphviz.org/t/node-only-shows-part-of-the-text/1294>\
**Category:** Help\
**Created:** [August 28, 2022, 11:16am UTC](https://forum.graphviz.org/t/node-only-shows-part-of-the-text/1294 "2022-08-28T11:16:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beilea](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@beilea](https://forum.graphviz.org/u/beilea)\
**Post date:** [August 28, 2022, 11:16am UTC](https://forum.graphviz.org/t/node-only-shows-part-of-the-text/1294/1 "2022-08-28T11:16:41Z")

</div>

I need help，i need node only show some text ,No matter how long the node text is, only display fixed node size and fixed text length, thank

---

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [August 29, 2022, 8:31pm UTC](https://forum.graphviz.org/t/node-only-shows-part-of-the-text/1294/2 "2022-08-29T20:31:26Z")

</div>

What OS are you using? (Windows, Linux, Apple?)  
Are you open do doing some preprocessing or post-processing programming?

---

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [August 30, 2022, 7:26pm UTC](https://forum.graphviz.org/t/node-only-shows-part-of-the-text/1294/3 "2022-08-30T19:26:54Z")

</div>

I can’t find easy way to truncate text to fit inside a node. I hoped the **fixedsize** attribute would truncate, but it doesn’t.  
Converting the labels to images and including those images does not truncate - but it will shrink the image/text to fit. Might this solve your problem?  
Or, if you can live with a fixed-width (monospaced) font like Courier ([Courier (typeface) - Wikipedia](https://en.wikipedia.org/wiki/Courier_(typeface))), you could pre-calculate the total width of the node label and truncate the string before invoking Graphviz. Python or gvpr ([https://www.graphviz.org/pdf/gvpr.1.pdf](https://www.graphviz.org/pdf/gvpr.1.pdf)) could perform this fix. So could other languages.  
If variable-width font(s) are needed, determining a correct substring starts be a real slog.
