0

Subtitle - Chinese Fonts

We have been further developing our project template for subtitling. We are using the modified subtitle plugin that Shaun coded. ("captioning via textzone" discussion forum). 

We are wishing to have the ability to display Macrons for Te Reo Maori, Chinese characters and possibly other Asian character types.

If we publish and run the project having encoded the text UTF-8 and relying on the Brightsign's system fonts we get the following on screen:

The Chinese characters 'chunk' out

If we add into the brs file a font definition...

s.text.SetFont(GetPoolFilePath(m.bsp.assetPoolFiles, "msyh.tff"))
s.text.Show()

and specify the font file in the 'Presentation Properties' - 'File' tab and publish and run the project we get the following:

Chinese characters look great but now the 'Roman' character set has serifs despite mysh.tff (Microsoft YaHei) being a sans-serif font.

We are confused. Please advise how we can display Chinese Characters with Sans-serif roman characters.

kind regards

piet

 

4 comments

  • 0
    Avatar
    Shaun

    I took a look and it looks like the plugin was unable to find the font file.

    Modifying line 49 of the plugin appears to correctly locate the font file making it work as expected. Will confirm once testing is completed.

  • 0
    Avatar
    Piet Asplet

    the fault lay with 

    s.text.SetFont(GetPoolFilePath(m.bsp.assetPoolFiles, "msyh.tff"))    which had a wrong extension....  it should have been "mysh.ttf"

    ARIALUNI.ttf is probably a better font choice though....

    But finding this fault doesn't fully explain the behavior of the player...  i.e. Why does it do a split between the ansi character set and the extended unicode set?   

     

  • 0
    Avatar
    Romeo

    Hi Piet,

    Please create a small presentation that show this issue then attach the zip file containing the exported presentation so we can reproduce it internally and log a bug if necessary.

    Regards,

    Romeo

  • 0
    Avatar
    Piet Asplet

    Hi Romeo

    The drop box link will take you to three demonstration presentation

    https://www.dropbox.com/s/0s168sdhj2w89o4/Subtest.zip?dl=0 

    The first....  HTML SubTest         (disregard HTML in the name... another development)

          Demonstrates the first screen grab above

    The second...  HTML SubTest tff

          Demonstrates the second screen grab above

    The Third...     HTML Subtest ttf

          Demonstrates what we were wanting after correcting the error.... the extension ttf

    We have our solution now so it is not an issue for us but in discovering the solution it has highlighted an interesting behavior in how the brightplayer manipulates fonts. It has left us a little dazed and confused.

Please sign in to leave a comment.