I’m to a point where our Book App is close to being publishable. With the help of everyone here, I was able to get my Hype children’s book project working properly in Xcode. I then moved on to programming in Android Studio and have gotten it loading in their Emulator. However, my challenge now is that the fonts are basic Ariel. Where as the Xcode project Simulates and builds to the device with the proper font (Noteworthy)
used in my Hype project??? So, I’m wondering if there is some easy way to change the default Android Studio project/emulator/build font to the font used in my Hype project? It seems like it doesn’t know about the font or is not including it in the output. Any help would be greatly appreciated. Thanks!
Is there a chance the the Noteworthy font isn’t installed in the Android device, in your case, the emulator? If that’s the case, maybe you can switch to using Web Fonts instead.
Noteworthy is a system font on macOS and iOS (stored at /System/Library/Fonts/Noteworthy.ttc) so it is simply referenced using the font-family name. You may instead want to move to using a webfont variant; it looks like it can be freely downloaded from sites like cufon.
If you grab the “@font-face Kit” then the steps to add it into Hype as a custom font would be:
Drag the “Noteworthy-Lt.woff” into the Resources Library
In the Resources Library, click the “+” and choose “Add Font…”
Change the top popup to “Custom CSS”
Set the Display Name to Noteworthy Light
Set the CSS Font Family to 'Noteworthy Light', Noteworthy, sans-serif;
In the Embedded Head HTML field, paste this code between them:
Thanks for your help Jonathan! It appears to have worked! I applied your steps and had to change the font in my Hype project to point to the new Web Font.
After doing so, I re-exported the project and copied the files over for Android Studio use. I ran the Emulator and the one font change I made (Lulu and the Laughing Daisy), now shows in the Noteworthy font!
So now I notice when clicking on the buttons, they do not go to the desired location but to an alternate screen. This started with the addition of the web fonts.
It is difficult to tell what might be going on from screenshots alone. What is the button supposed to do/what action is it set to?
It seems unlikely that a font change would modify the behavior of a button. To rule it out entirely, have you tried changing back to the previous font behavior and see that it is in fact that change that caused it?
Does this happen on other devices/browsers? It may be useful to post a zip of your .hype document if possible.