Topic: Is it possible to apply two different fonts to th14.5 with thcrap?  (Read 163 times)

0 Members and 1 Guest are viewing this topic.

rosenrose

  • Neophyte


This is a screenshot of ULiL with korean patch which is not made using thcrap.
This patch is very well-made, except for one problem: the dialogue is still printed out vertically. This is quite annoying.

Therefore, I'd like to make a new patch using thcrap applying the data extracted from that patch.
But as you can see, the font used for the dialogue is different from the other used for the menu.
I think this is not possible for thcrap for now. Because the file 'global.js' in script_latin plugin defines a font uniquely, not distinguishing the two cases.

So could you please tell me if there is a way to use two fonts?
« Last Edit: December 08, 2018, 06:33:51 pm by rosenrose »

rosenrose

  • Neophyte
Re: Is it possible to apply two different fonts to th14.5 with thcrap?
« Reply #1 on: November 28, 2018, 04:02:16 pm »
Oh, I got an information about using two fonts from thpatch center FAQ.
https://www.thpatch.net/wiki/Touhou_Patch_Center:FAQ#Do_you_need_any_particular_fonts_for_the_text_to_look_right.3F_Can_you_change_the_default_font.3F
As the last sentence says, It's not possible currently.

But after further searching, I finally figured out how to use two or more fonts.
This link is a documentation about the "fontrules".  https://github.com/thpatch/thcrap/blob/0a0cc674eb2c115aa2e2d99469dc8e94b91ed467/thcrap/src/textdisp.h

And I tried out. It works.



Maybe the answer of the patch center is outdated.
« Last Edit: November 29, 2018, 03:56:02 pm by rosenrose »
 

SMF 2.0.15 | SMF © 2017, Simple Machines
Theme based on ModernDark64 design by BlocWeb
Page created in 0.064 seconds with 22 queries.