Typography icon indicating copy to clipboard operation
Typography copied to clipboard

make examples on other platform

Open prepare opened this issue 8 years ago • 11 comments

aaeaaqaaaaaaaax9aaaajdvhztmymzizltiwzjktnda3my05zjiwlti2nmvmndnhm2mzoq

https://commons.wikimedia.org/wiki/File:Printer_in_1568-ce.png

MAC/ Mono/Xamarin Linux Unity XNA

prepare avatar Oct 17 '16 01:10 prepare

@vidstige ,

as you are writing a rasterizer, I think the repo https://github.com/teichgraf/WriteableBitmapEx is another good resource to you.

prepare avatar Nov 07 '16 00:11 prepare

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.

vidstige avatar Nov 07 '16 08:11 vidstige

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.

prepare avatar Nov 07 '16 09:11 prepare

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! :-)

vidstige avatar Nov 07 '16 10:11 vidstige

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.

zwcloud avatar Feb 16 '17 12:02 zwcloud

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

prepare avatar Feb 23 '17 08:02 prepare

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.

zwcloud avatar Mar 20 '17 08:03 zwcloud

Done. See #31 .

zwcloud avatar Mar 22 '17 10:03 zwcloud

Gdi+ sample on Win7 issue_72

prepare avatar Oct 27 '17 12:10 prepare

and latest, from @samhocevar contribution. (see https://github.com/LayoutFarm/Typography/commit/47b68ee8d34f847cecdc6814038312e3b4e5ce7f)

A Linux screenshot of the GDI+ sample:

image

prepare avatar Oct 27 '17 12:10 prepare

The HtmlRenderer example!

html_renderer_with_selection2 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)

prepare avatar Dec 30 '17 07:12 prepare