Recent

Author Topic: TMemo Some text renders correctly others show up as Unicode code points  (Read 4270 times)

Aruna

  • Hero Member
  • *****
  • Posts: 597
Hi, I wanted to check language support and possible internationalization so wrote this and found some text renders properly while others show Unicode end points. How do I fix this, please? The attached screenshot shows the issue. Thank you.
« Last Edit: December 27, 2024, 05:14:37 pm by Aruna »

dsiders

  • Hero Member
  • *****
  • Posts: 1377
Re: TMemo Some text renders correctly others show up as Unicode code points
« Reply #1 on: December 27, 2024, 05:44:14 pm »
Hi, I wanted to check language support and possible internationalization so wrote this and found some text renders properly while others show Unicode end points. How do I fix this, please? The attached screenshot shows the issue. Thank you.

More than likely, you're using a font which doesn't have glyphs for those code points. Try Noto Sans - it seems to have the most expansive coverage.
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

Aruna

  • Hero Member
  • *****
  • Posts: 597
Re: TMemo Some text renders correctly others show up as Unicode code points
« Reply #2 on: December 28, 2024, 12:07:45 am »
Hi, I wanted to check language support and possible internationalization so wrote this and found some text renders properly while others show Unicode end points. How do I fix this, please? The attached screenshot shows the issue. Thank you.

More than likely, you're using a font which doesn't have glyphs for those code points. Try Noto Sans - it seems to have the most expansive coverage.
Hello @dsiders, you were right. I had to
Code: Text  [Select][+][-]
  1. sudo apt update then sudo apt install fonts-noto
and boom everything worked! Screenshot is attached. So thank you. I have a question though... something I have not seen before. When I did sudo apt update one of the lines said: Hit:5 https://packages.microsoft.com/repos/code stable InRelease (So I am wondering what is going on?? Second screenshot shows this..)
 

dsiders

  • Hero Member
  • *****
  • Posts: 1377
Re: TMemo Some text renders correctly others show up as Unicode code points
« Reply #3 on: December 28, 2024, 12:41:25 am »
Hello @dsiders, you were right. I had to
Code: Text  [Select][+][-]
  1. sudo apt update then sudo apt install fonts-noto
and boom everything worked! Screenshot is attached. So thank you. I have a question though... something I have not seen before. When I did sudo apt update one of the lines said: Hit:5 https://packages.microsoft.com/repos/code stable InRelease (So I am wondering what is going on?? Second screenshot shows this..)

No idea. That's something you should address to the Debian package maintainers.
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

Aruna

  • Hero Member
  • *****
  • Posts: 597
Re: TMemo Some text renders correctly others show up as Unicode code points
« Reply #4 on: December 30, 2024, 06:37:18 am »
Hello @dsiders, you were right. I had to
Code: Text  [Select][+][-]
  1. sudo apt update then sudo apt install fonts-noto
and boom everything worked! Screenshot is attached. So thank you. I have a question though... something I have not seen before. When I did sudo apt update one of the lines said: Hit:5 https://packages.microsoft.com/repos/code stable InRelease (So I am wondering what is going on?? Second screenshot shows this..)

No idea. That's something you should address to the Debian package maintainers.
I asked the folks on IRC #debian and it seems if you install VSCode it automatically goes and adds that line :) At least now we know!

 

TinyPortal © 2005-2018