PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Ideas for resizing text
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1678
Page 1 of 1

Author:  IanIan [ Thu Jun 02, 2011 10:41 am ]
Post subject:  Ideas for resizing text

Hi there,

I need to reduce a string's font size if the string is too long for the space its been allocated. Does anyone have any ideas on how to do this?

I was planning on just doing a brute force method of reducing the font size until the text fits...

Cheers, Ian.

Author:  IanIan [ Thu Jun 02, 2011 11:14 am ]
Post subject:  Re: Ideas for resizing text

To go from max font size to min at intervals of 0.1 per attempt takes about 62 milliseconds on my machine.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/