kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #32856
Re: [PATCH] eeschema: neatly wrap placeholder text in symbol chooser
Hey Wayne, did you see this? I'm pretty confident it's ready to push but
I'd like a second opinion on finding a good place for the function I had
to write.
On Thu, Jan 04, 2018 at 01:55:08AM +0000, Chris Pavlina wrote:
> Hi,
>
> The placeholder text that was added to the symbol preview in the chooser
> ("double-click here...") has a manually placed line break, making it
> flow poorly anywhere the line length doesn't work well --- on my system
> with my DPI setting and fonts the line is cut off at almost any
> non-ridiculous window sizing. I wrote a small function to wrap text
> drawn to a wxDC to fix that.
>
> I just added this as a static function near where it's used, but if
> there's a better place to stick "miscellaneous wxDC helpers" please
> advise and I'll move it; I couldn't find a decent spot.
>
> --
> Chris
Follow ups
References