Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
514 views
in Technique[技术] by (71.8m points)

TinyMCE Rupess Symbol Comes as Rectangular Box

I have Added a new option in TinyMCE CharMap . but since font was not supporting in client system so how do we import custom font to Rupess symbol appear perfectly .

tinymce.PluginManager.add("charmap", function(e) {
function t() {
    return [
        ["8377", "Rupess Symbol"],
        ["160", "no-break space"],
         ..So on 
        ["8207", "right-to-left mark"]
    ]
 }

Please any one suggest or provide live fiddle with font supported and display Rupess Symbol . since we can't install font on client systems . Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Are you asking how you get a client machine to use a font you want to support a symbol? Effectively you can't control what someone installs on their machine.

What you may be able to do is use inline styles to define the font family for the symbol to a font family that would work on most platforms?

Perhaps something like this:

<span style="font-family: 'Sans-Serif';">&#8377;</span>

In my brief testing this renders on Windows and Mac machines.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...