Yes, I have used multiple fonts. The stand alone diacritics are very small.
As is the case with the arabic characters, they are small, medium and large. One font size for all characters is not ideal. At least, font size on each layer based should be allowed.
For Font sizes,
We are used to using points (pts) for printed fonts (12pt for “normal” printed text, Arabic fonts are often illegible at 12pt and I’ve seen documents printed as high as 20pt.). The pt unit doesn’t always map well to screens of different sizes.
Specifically, I would suggest using em units in your keyboard, which are proportional to the “default” size. This means that whatever the size of the overall keyboard font, the specific characters will be proportionally larger (or smaller).
1em means the default size. 1.5em means 50% larger, .5em means 50% smaller.
In CSS, 50% larger for your diacritic keycap would be:
Note: The CSS is applied only when the mobile keyboard is running (on your browser or phone), so you won’t see the size difference in Keyman Developer. If you want to see the same sizes in KMDev, you need to ALSO add a line to the key in the Touch layout’s code editor. Below is one of my special keys in the code editor that is 80% (0.8em) of the normal font size (because it has three side-by-side-characters).
@Makara I thought I knew KM formatting inside and out, but learned something today. I thought that the fontsize code in used in KMDev was applied before the CSS in the live keyboard, but now I see that that is not (or is no longer) the case. The two are separate. Is that a recent change?
Not that I’m a CSS expert, but I probably should be a better person to ask about that. Though… uh, I’m not 100% clear on the observation and question. Are you saying that the fontsize code on the key is not applied at all within KeymanWeb outside of Keyman Developer testing? Or that it’s applied ‘after’ rather than ‘before’? Is there a keyboard I should try in both places to see the difference?
Also, what version of Developer and of KeymanWeb are you using? Are you using 17.0 alpha versions or 16.0? There’s a chance some 17.0 changes could have had an unwanted side effect, with this as our first observation, so it’d help to know.
I’m on 16.0.141. Screenshots are from SIL/Cameroon_Azerty
My T_CAM key (shown in the screenshot) is supposed to be 0.8em because it is several letters long. The in-code keyboard size
seems to only affect the touch-layout preview in the editor. I thought I remembered that it affected mobile, but in my testing, it does not. Maybe this code is deprecated, because it’s not configurable in the interface.
CSS affects the OSK and Touch keyboards, but has never been previewed inside KMDev.
Currently, I don’t have CSS resizing set up. You could test with "fontsize: “.5em” first to see if it makes it to the keyboard preview in your browser.
Then add a “font-size” style to my lines for T_CAM in the CSS and see what you get.