2009-11-04 11:18:47 UTC
Hi all. First of all, a massive thank you to Stefano for what is a brilliant API. It's saved me endless heartache trying to mash together this app I'm working on.
I'm trying to layout some text in columns. The width of each column and the allowed height are known variables and the text must flow from one column to the next correctly. This works fine.
However, now I have started adding styles into the mix, things have gone awry. The alogorithm I'm using splits the full text into chunks and associates them with a font to use (italic / bold is only supported so far - can't find underlining options at the moment). Then each chunk of text is iterated over, the font selected and the text shown in a BlockFilter. However, there are sometimes character overlaps between the start or end of the bold / italic blocks, which renders the whole endeavour broken, currently.
I'm using BeginLocalState()/End() to wrap my context changing but it doesn't seem to affect the output.
Any ideas?