unity-sysfont icon indicating copy to clipboard operation
unity-sysfont copied to clipboard

About Windows Phone 8 support

Open lyh1win opened this issue 11 years ago • 1 comments

If there is no WP8 support, any tips to port it to WP8?

lyh1win avatar Apr 11 '14 08:04 lyh1win

I believe you need to create a library (probably in cpp , maybe c# is also possible) and call text to bitmap rendering APIs that exist in WP8. After that you need to create a texture with it and inform unity-sysfont of that texture's pointer/id.

Take a look here first.

http://docs.unity3d.com/Manual/wp8-plugins-guide-csharp.html http://docs.unity3d.com/Manual/wp8-plugins-guide-cplusplus.html

This is a quick google search, but I think you need something "close" to this. http://code.msdn.microsoft.com/windowsapps/Render-text-on-bitmap-fff2b406

You would have to create something very close to this (android source):

https://github.com/imkira/unity-sysfont/blob/master/android/src/com/github/imkira/unitysysfont/TextureUpdate.java https://github.com/imkira/unity-sysfont/blob/master/android/src/com/github/imkira/unitysysfont/UnitySysFont.java

The first one should be very easy, the second one involves like I said above rendering text to a bitmap and creating an OpenGL ES texture with it.

imkira avatar Aug 29 '14 05:08 imkira