https://kotlinlang.org logo
#feed
Title
# feed
o

olonho

08/27/2020, 2:13 PM
Kotlin Skia bindings version 0.1.5 got recently released, with support for macOS, Linux and Windows. See https://github.com/JetBrains/skiko
👍 16
m

mikehearn

08/27/2020, 2:36 PM
I'm curious what the intended use case is for this library? Why is JB developing it?
Is there a plan to use Skia in JB products? As it currently targets only the JVM, it seems it competes with Java2D.
t

Tristan

08/27/2020, 3:23 PM
Will their version of Compose use skiko? 🙂
z

Zach Klippenstein (he/him) [MOD]

08/27/2020, 4:23 PM
Compose already uses Skiko I believe, it was migrated from Skija recently.
c

cedric

08/28/2020, 7:36 AM
Some screen shots would be great...
m

mikehearn

08/28/2020, 8:12 AM
There are screenshots and animations on the Skia site.
c

cedric

08/29/2020, 5:52 AM
I know. And I'm familiar with Skia (used to work on Android, remember?). My point still stands.
m

mikehearn

09/01/2020, 10:39 AM
Ah, yes, sorry.
g

Glen

09/14/2020, 2:27 PM
Hello everyone. Please has anyone tried out the Skia library on a JVM project?
Please, I need some help using it.
o

olonho

09/14/2020, 2:28 PM
Ask your question
g

Glen

09/14/2020, 2:39 PM
So, I tried the example that was given in the README. But I had a problem with the Renderer object.
I think that the Renderer object is found in the skija package, but I could not find any Renderer class that satisfied the IDE. Please, how can I correct that?
I am trying to run the project in Ubuntu.
Please, @olonho, how can I solve the issue? Thanks in advance.
o

olonho

09/14/2020, 2:58 PM
can you open and run Skiko’s example from
samples/SkijaInjectSample
?
g

Glen

09/14/2020, 2:59 PM
Oh, I see the problem.
The Renderer class was created in the sample's App.kt file. It therefore means that the README was not really accurate.
Thanks, @olonho. I will just copy the Renderer class from the sample and try it out again.
It worked. The README has to be updated. Please, @olonho, can I do that?
o

olonho

09/14/2020, 3:32 PM
Sure, please send a PR
g

Glen

09/14/2020, 3:32 PM
OK 👍
Please, @olonho, I have a question. What about those who do not have the JetBrains-Mono font?(Since in the Renderer class, that specific font is being used)
o

olonho

09/14/2020, 3:42 PM
You could just remove it, and font manager will find appropriate fonts
g

Glen

09/14/2020, 3:44 PM
OK.
@olonho, PR modified with the applied corrections.
Hello @olonho. Please, I have a question: Was the Renderer class supposed to be part of the API?
o

olonho

09/15/2020, 2:29 PM
not mandatory
g

Glen

09/15/2020, 2:37 PM
OK, I see.
23 Views