Typography
Typography copied to clipboard
make examples on other platform
https://commons.wikimedia.org/wiki/File:Printer_in_1568-ce.png
MAC/ Mono/Xamarin Linux Unity XNA
@vidstige ,
as you are writing a rasterizer, I think the repo https://github.com/teichgraf/WriteableBitmapEx is another good resource to you.
Thanks for the link! In WPF there is already vector graphics without any libraries. I want to build a rasterizer including the actual algorithms, as compared to using a library containing the algorithms. For example it could be used in the MOSA Project where they write an operating system from scratch in c#. There you do not have WPF nor WinForms.
umm, inside that project, it talks about write/raster geometry to pixel buffer.
(then it just copy to WPF -> to screen)
so it can port to run in any platform that provide them a buffer to draw. just look inside it. I think that is useful to you.
I see. I just checked and they subdivide beziers to polygons and then draws polygons. Perhaps I should do that too, but I rather draw beziers directly. Thanks for the link! :-)
I think Typography should have a directory that contains all demos. Maybe we can create a directory named Demo
in the root directory and sub-directories per platform like:
Demo
|--Windows
| |--FontRasterizerSample.WinForms
|--Mac
|--Linux
|--Android
|--iOS
|--...
By the way, I was trying to write demos with Xamarin on Android. 😃 I have done something but I'm a little busy now so I paused the work temporarily some days ago. But I promise I will finish that when I'm free again.
1. Demo , No PixelFarm Drawing Lib, easy to port to other platform
see https://github.com/LayoutFarm/Typography/tree/master/Demo/Windows/GdiPlusSample.WinForms
2. Demo, with PixelFarm Drawing Lib,
see https://github.com/LayoutFarm/Typography/tree/master/Demo/Windows/PixelFarmSample.WinForms
I have made Tygography run and render text on Android! I'm organizing and refactoring the android demo and will finally make a pull-request to Typography.
Done. See #31 .
Gdi+ sample on Win7
and latest, from @samhocevar contribution. (see https://github.com/LayoutFarm/Typography/commit/47b68ee8d34f847cecdc6814038312e3b4e5ce7f)
A Linux screenshot of the GDI+ sample:
The HtmlRenderer example!
pic 1: HtmlRenderer on GLES2 surface, text are renderered with the Typography
also, please note the text selection on the Html Surface.
(HtmlRender => https://github.com/LayoutFarm/HtmlRenderer,
Typography => https://github.com/LayoutFarm/Typography)