Forum How do I...?

"——" word problem

madaOmada
“——”
This notation is different in the browser and Prince
Font file cannot be uploaded
  1. 7.png0.4 kB
    in prince
  2. 7normal.png0.6 kB
    in browser
mikeday
Which font are you using?
madaOmada
mikeday
This looks fine:
<style>
/* Source Han Sans CN, Regular */
@font-face {
    font-family: "Source Han Sans CN";
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    src: url("90.woff")
}
</style>
<p style="font-family: Source Han Sans CN">
“——”
</p>

Please see the attached PDF.
  1. test.pdf4.2 kB
madaOmada
I use span to separate each character, like this:
<style>
    /* Source Han Sans CN, Regular */
    @font-face {
        font-family: "Source Han Sans CN";
        font-weight: normal;
        font-style: normal;
        font-stretch: normal;
        src: url("http://image.tubangzhu.com/updata/fonts/v1/90.woff")
    }
</style>
<p style="font-family: Source Han Sans CN">
    “<span>—</span><span>—</span>”
</p>
mikeday
It seems that this font is using an OpenType substitution to replace the two glyphs with one glyph however Prince cannot apply substitutions across span boundaries at this time.
madaOmada
All right,thanks