Full justification code?
Full justification code?
Does anyone have a full justify function for mono fonts? I'm sure that must exist somewhere 
Re: Full justification code?
For the EditorGadget?Joubarbe wrote: Tue Feb 13, 2024 1:44 pm Does anyone have a full justify function for mono fonts? I'm sure that must exist somewhere![]()
And do you need cross platform?
Re: Full justification code?
General purpose. It would be for my own gadget, so nothing to do with the native ones. There are some codes out there for other languages, including Python and Java, but I failed at porting them 
Re: Full justification code?
I did something like general text justification (with any font) in sgx. IIRC you it could justify text by expanding the spaces between the words or even between the characters (not sure what the latter was exactly).
Use 'Find in files' with sgx.pbi to find all places, mostly sgx_drawTextLF() (needs one other function and an enumeration)
examples for how it looks are in sgxDoc/04sgxText.pb
But maybe you are looking for something more specific where words/characters stay within the monospace 'matrix' and don't get shifted pixelwise? I don't have anything for that right now.
Use 'Find in files' with sgx.pbi to find all places, mostly sgx_drawTextLF() (needs one other function and an enumeration)
examples for how it looks are in sgxDoc/04sgxText.pb
But maybe you are looking for something more specific where words/characters stay within the monospace 'matrix' and don't get shifted pixelwise? I don't have anything for that right now.

