Implement basic font rendering tuning for code editor.#83
Implement basic font rendering tuning for code editor.#8313-beta2 wants to merge 1 commit intoicsharpcode:masterfrom
Conversation
|
Why should this be part of AvalonEdit? Especially the "CurrentZoom" hack doesn't seem like it belongs into the library. (what about zoom controls using a different property name?) The TextOptions are usually set on the whole Window and then are inherited into all controls (including AvalonEdit); so I don't see a need to override the TextOptions from within AvalonEdit. If you are using AvalonEdit within a zoom control that needs to dynamically switch the TextOptions, that feature should be part of the zoom control, not AvalonEdit. |
|
Thanks for your feedback! You are right, I'm not very familiar with #develop architecture and could do some stupid mistakes. I'll try to correct this feature using your suggestions. |
…s part) Ability to disable anti-aliasing for 'pixel-perfect' fonts like Courier New. Ability to disable hinting to forget about jagged default WPF rendering.
Main logic moved to zoom widget (icsharpcode/SharpDevelop#733). AE has only one property binding. Is it ok now? |
|
Why does AvalonEdit need this binding? AFAIK the Edit: inheritance uses the logical tree, not the visual tree. That might explain why it wasn't working without the binding for you. Still, I think this should be handled completely in the zoom control, without any change to AvalonEdit. |
|
I don like this binding too. And the only way I see to remove explicit property setter is to change My studies has shown that parent for AE is Main disadvantage is that all other text within |
|
The AvalonEdit rendering mode can be controlled by setting |
Ability to disable anti-aliasing for 'pixel-perfect' fonts like Courier
New.
Ability to disable hinting to forget about jagged default WPF rendering.
I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the #develop open source product (the "Contribution"). My Contribution is licensed under the MIT License.