Clickteam Fusion 2.5

Clickteam Fusion 2.5

Custom fonts for android
I would like to use the Bahnschrift Condensed font included in windows 10 on android. I used the Android font packer, but only Bolt and Regular appear on Android, not Condensed style. Can this font style be used or not? Please help.
< >
16/6 megjegyzés mutatása
Hello.
The term Condensed is used to describe the appearance of a font - it's not a font-style like Bold/Regular/Normal. There should be a way to install this font on your system with the result that a separate entry for 'Bahnschrift Condensed' would appear in the font list of the String object - then make sure to include it with the Extension (Android Font Packer Control).
In any case all necessary font resources must be available after the build process - when you extract your .apk archive, you should be able to find the font assets that can be used.
In theory you always have the option to load a font into a program (example: FontForge) to create a standalone .ttf font that only includes a variation of a specific font (for example the Condensed variation of the Bahnschrift font-family).
As I wrote. I have Condensed in the list of fonts for the string. In Android font packer Condensed is set but not working. I cannot separate the individual font style/appearance from one ttf file. :(
When you extract the .apk with your packed font in Windows and packing process was successful, you should find an assets folder and in a subfolder your .ttf font - file name would probably appear as 'bahnschrift condensed'.
If this worked ok, then you can experiment on your Android device if your test font 'bahnschrift condensed' is compatible, something like this:

Start of Frame
Read Packed Fonts

Timer equals 2 seconds
(String) Set font name to "bahnschrift condensed"

if this name would be wrong, you can show yourself the correct name with:
Timer equals 3 seconds
(Change String / Set Alterable String) to PackedFontName$( "Android Font Packer", CORRECT INDEX number of the font position in Android Font Packer list)

Timer equals 4 seconds
(String) Set font name to PackedFontName$( "Android Font Packer", INDEX again)

(Font Packer) On Error Occurred
set a Counter to 1
The .apk file contains "bahnschrift condensed.ttf". PackedFontName$ returns "bahnschrift condensed". But it still shows Regular. Changing the font of a String using the name or index does not change anything.
Can Condensed font be used in CTF at all? I'll use the Regular style for now.
No, this doesn't matter - not every Windows font works with Android.
If this is really important - with some time, effort and basic font creation knowledge, you should be able to create your own shrinked version of a font(only with all the signs you need) that looks exactly like the proprietary font that wasn't compatible.
< >
16/6 megjegyzés mutatása
Laponként: 1530 50