Joel Denke
02/08/2024, 2:51 PMFont(resource = FontResource("myfont"), weight = FontWeight.Normal, style = FontStyle.Normal)
Should the path or id be different somehow?Michael Paus
02/08/2024, 3:04 PMJoel Denke
02/08/2024, 3:05 PMJoel Denke
02/08/2024, 3:08 PMImage(painterResource(DrawableResource("files/compose-multiplatform.xml")), null)
Joel Denke
02/08/2024, 3:09 PMcurioustechizen
02/08/2024, 3:25 PMJoel Denke
02/08/2024, 3:26 PMJoel Denke
02/08/2024, 3:26 PMcurioustechizen
02/08/2024, 3:26 PMJoel Denke
02/08/2024, 3:28 PMMichael Paus
02/08/2024, 3:38 PMJoel Denke
02/08/2024, 3:40 PMJoel Denke
02/08/2024, 3:40 PMMichael Paus
02/08/2024, 3:40 PMLike if I use Res.font.myFont, what does that code gives me?It gives you statically checked access. It avoids typos.
Joel Denke
02/08/2024, 3:41 PMJoel Denke
02/08/2024, 3:41 PMMichael Paus
02/08/2024, 3:43 PMgetMyFont
or whatever which you can access from module B, C, D, …Joel Denke
02/08/2024, 3:44 PMJoel Denke
02/08/2024, 3:45 PMgetMyFont
or whatever which you can access from module B, C, D, …"
Also this defeats the entire purpose of having the code generated for Res 😛Joel Denke
02/08/2024, 3:45 PMJoel Denke
02/08/2024, 3:46 PMJoel Denke
02/08/2024, 4:20 PMFontResource("font/myfont.ttf")
And yeah probably breaks in future release, but thats how it is, I am on the edge each release anyway.
Once they provide me a window in upcoming Jetbrains releases of going forward not doing this I will update.
Until then I need to stick with beta02 I guess 😄Umesh Gupta
02/15/2024, 8:18 AMFontResource("font/myfont.ttf")
not working in IOSJoel Denke
02/15/2024, 8:22 AMUmesh Gupta
02/15/2024, 10:09 AMUmesh Gupta
02/15/2024, 10:31 AMJoel Denke
02/15/2024, 10:41 AMUmesh Gupta
02/15/2024, 10:43 AMresources.srcDirs("${project(":module")._projectDir_}/src/commonMain/composeResources")
Michael Paus
02/15/2024, 1:52 PM