2

I'm developing a website that needs to be able to display LTR and RTL scripts, among the latter also Syriac, which is not supported by all systems out of the box. So, for Syriac I'm using webfonts, which work fine for "normal" text (i.e. headings, paragraphs, and so on).

One part of the site is implemented using a virtual keyboard written in JavaScript, which has explanations for what certain keys do in the HTML title attribute. The tooltips rendered by the browser for these title attributes look like this at the moment:

Screenshot of broken tooltip

My question is: is there any way (without having to change all the browers' sourcecode and without having to add extra HTML via JavaScript) to have the Syriac webfont be used for those title-attribute-based tooltips?

Edit: I'm asking this question specifically to find out if it's possible to make the Syriac writing visible. I'm aware that this might be the same problem as trying to style the tooltip in some way. But I'm hoping I'm wrong and somebody knows some solution.

Sixtyfive
  • 1,150
  • 8
  • 19
  • I'd assume this is not customizable by CSS, and hence would rather choose to display my own tooltips rather than relying on the browser's ones. Why don't you want this alternative exactly? – Kaiido Feb 09 '19 at 12:35
  • Possible duplicate of [How to change the style of the title attribute inside an anchor tag?](https://stackoverflow.com/questions/2011142/how-to-change-the-style-of-the-title-attribute-inside-an-anchor-tag) rationale: @font-face is part of "style". – Kaiido Feb 09 '19 at 12:37
  • I'm aware of that question @Kalido. My hope was, that *just* making the Syriac text visible might be a different case and possible to be made to work. Hence the new question... – Sixtyfive Feb 09 '19 at 15:16
  • As for your question: I'd like to avoid having to change a project that isn't my own and where politics come into play (the author might not want such self-made tooltips, or I might not understand how to integrate them into his project, etc... – Sixtyfive Feb 09 '19 at 15:18
  • No if the user doesn't have the font on their system, no way. – Kaiido Feb 09 '19 at 23:53
  • Kalido, that sounds like you're confident about the matter. If you'll make your comment into an answer I'll be very (un)happy to accept that. – Sixtyfive Feb 10 '19 at 18:29

0 Answers0