Display Name
Display Name

Reputation: 15101

Is it possible to edit the font-family of tooltips on a browser?

rikaikun (with symbol 理 at the top right corner) is Chrome's addons to show the description of a word being highlighted.

enter image description here

Question

Unfortunately rikaikun does not show the stroke order of the Kanji characters. As the stroke order is important, if possible, I want to hijack it, change the font-family to KanjiStrokeOrders font (available here).

Is it possible to do so? How?

Upvotes: 0

Views: 93

Answers (1)

user149341
user149341

Reputation:

If that were actually a tooltip, the answer would be "no". Tooltips are rendered by the OS, and do not support any formatting.

However, what's shown in the picture isn't a tooltip! It's an HTML element injected into the document by the extension. It clearly already has some CSS styling applied to it (e.g, coloring certain words), so I see no reason why you couldn't extend that.

Upvotes: 2

Related Questions