TBGRAFreeTypeFontRenderer and linux font paths lazarus / 39-Graphics ---------------------------------------------------------------------- nomad · 2024-10-15 04:20 Hey everyone, I am trying to use the TBGRAFreeTypeFontRenderer and I setup the font collection as per the examples. https://wiki.freepascal.org/BGRABitmap_tutorial_Font_rendering I copied a ttf font into the directory with the binary and specified the font name. When I compile it is giving an error that it cannot find the Arial font. I think it is defaulting to that font. Does anyone have any fix to this. I wold love to use the fontdialog with the TBGRAFreeTypeFontRenderer. Any help is appreciated. Thanks in advance. ---------------------------------------------------------------------- bobby100 · 2024-10-15 15:56 From your link: QuoteNote that in the current implementation, it is necessary to provide Arial font even if you are not using it. ---------------------------------------------------------------------- Dzandaa · 2024-10-15 17:23 Hi, @nomad:  Have you installed "Ttf-mscorefonts-installer"? I'm using Mint Linux ttf-mscorefonts-installer B-> ---------------------------------------------------------------------- nomad · 2024-10-17 02:30 Quote from: bobby100 on October 15, 2024, 05:56:42 pmFrom your link: QuoteNote that in the current implementation, it is necessary to provide Arial font even if you are not using it. If that was true then it should have worked. It did not. I am using debian linux. Mate desktop. ---------------------------------------------------------------------- nomad · 2024-10-17 02:32 Quote from: Dzandaa on October 15, 2024, 07:23:26 pmHi, @nomad:  Have you installed "Ttf-mscorefonts-installer"? I'm using Mint Linux ttf-mscorefonts-installer B-> I will give it a try and see if it works. Thanks. ---------------------------------------------------------------------- nomad · 2024-10-18 04:28 Quote from: Dzandaa on October 15, 2024, 07:23:26 pmHi, @nomad:  Have you installed "Ttf-mscorefonts-installer"? I'm using Mint Linux ttf-mscorefonts-installer B-> I could not get it working in my vm. So I decided to write my own functions to the same thing without the issue with the font nonsense. trying to figure out how to do blur with lazarus native libraries. Trying to stick with lgpl components. Do not want to deal with the nonsense of gpl. ---------------------------------------------------------------------- circular · 2024-10-22 05:28 Hi nomad, If I understand correctly, you are getting a runtime error about a missing font. Can you provide a sample project to debug? In fact, it is not needed anymore to have specifically Arial font. It tries the following fonts: Helvetica, Helvetica Neue, Arial, Nimbus Sans L, Microsoft Sans Serif, FreeSans, Liberation Sans, DejaVu Sans Condensed, Tahoma. I'll update the wiki accordingly. Regards ---------------------------------------------------------------------- nomad · 2024-10-28 03:42 Quote from: circular on October 22, 2024, 07:28:39 amHi nomad, If I understand correctly, you are getting a runtime error about a missing font. Can you provide a sample project to debug? In fact, it is not needed anymore to have specifically Arial font. It tries the following fonts: Helvetica, Helvetica Neue, Arial, Nimbus Sans L, Microsoft Sans Serif, FreeSans, Liberation Sans, DejaVu Sans Condensed, Tahoma. I'll update the wiki accordingly. Regards I am trying a different approach. I am trying out the svg control and I can do alot of cool text designs with that. I made a new post "need help with BCSVGViewer..." asking help with the text wrapping in svg. Apparently it uses svg 1.0.