FFDA / SourCherry

Android app to open CherryTree databases
GNU General Public License v3.0
68 stars 3 forks source link

Adding fonts? #20

Closed GoldenGlimpse closed 1 month ago

GoldenGlimpse commented 2 months ago

Hi, Is it possible to add fonts? I make rhythm notations and i need the characters to be spaced evenly so the lines match up in blocks.

for example: D_Tk_DT_T___ D_tkT_k_D_tkT_T_tk

As you can see, the lines don't match up, yet they both have 18 characters. How can i fix this please. Thanks.

FFDA commented 2 months ago

Hello,

What do you mean exactly? I've already received the same or a very similar request before (in a discussion forum that is now disabled). If you want to change the font for all the text in all the nodes (except codeboxes), you can do so in Settings > Appearance > Font Type. However, I doubt that the fonts I've added will have the features you require. If you need a specific type of font, you can mention it here, and if it's open-source, I will be willing to add it in the next release.

If you want to set a font for a specific part of the node, that might be difficult, as supporting many fonts would require packing them into the APK. Moreover, I don't know if CherryTree actually supports this function, so you would need to show me how to do it in the desktop version. I won’t add a feature that is not supported in the desktop version.

GoldenGlimpse commented 2 months ago

Thank you for your response. Unfortunately i don't know much about fonts. All i know is sometimes the lines match up, and sometimes they don't. There is probably many fonts that do so.

This is the same line example on desktop, 18 characters per line: rhy example font

Imported into SourCherry it looks like this: (changing font settings doesn't make the lines line up) Screenshot2

Small letters are not as wide as capital letters.

both 8 characters: T_T_TT
t_t_tt

CherryTree: cherryfon

Settings in CherryTree: cherry font

I'd like to know what does the trick...

Thank you

FFDA commented 2 months ago

So, you're using monospace fonts. I'll try to include one in the next release, though I’m not sure when that will be.

Oh, and I found out that there’s an option to make only the selected text monospaced in CherryTree as well. image

GoldenGlimpse commented 2 months ago

Wonderful, thank you very much. Looking forward to the next release.