wjjw Posted October 27, 2021 Share Posted October 27, 2021 Hello, I have one portal which I developed with Delphi 10.4 and uniGUI 1.90.0.1534. It works and looks same like on my development machine. Now I switched to Delphi 11 and uniGUI 1.90.0.1552. Not sure what is the problem but on some components the font is different. This not correct handled components are for example TUniButton, TUniEdit, TUniLabel, TUniComboBox (but only label and selected value, list values when you open it is OK). Working components are for example TUniPageControl, TUniTreeViewMenu. See in the attachment one screen with correct and not correct font example. What I tested was also different themes - colors are changing, but font issue is the same on all themes. Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted October 28, 2021 Share Posted October 28, 2021 12 hours ago, wjjw said: Hello, I have one portal which I developed with Delphi 10.4 and uniGUI 1.90.0.1534. It works and looks same like on my development machine. Now I switched to Delphi 11 and uniGUI 1.90.0.1552. Not sure what is the problem but on some components the font is different. This not correct handled components are for example TUniButton, TUniEdit, TUniLabel, TUniComboBox (but only label and selected value, list values when you open it is OK). Working components are for example TUniPageControl, TUniTreeViewMenu. See in the attachment one screen with correct and not correct font example. What I tested was also different themes - colors are changing, but font issue is the same on all themes. One of the new features in Delphi 11 is high Dpi for 4K screen. Maybe you have to start your bds.exe without high dpi. On your shortcut "Delphi 11" ...bds.exe" "/highdpi:unaware" "-pDelphi" Quote Link to comment Share on other sites More sharing options...
wjjw Posted October 28, 2021 Author Share Posted October 28, 2021 Hello, looks like issue is the font name - it's new one in Delphi "Segoe UI". It is installed on the server and even on the workstation - still it does not show it correctly (looks like "Times New Roman"). Even when I set the font name manually in the code - it still looks wrong. It should more like look "Arial". If I set the font to "Arial" - this works just fine. I also tried to set the default font in the application to "Arial" - still not working. Looks like I have change the font name for all components in the portal.. 😕 Nobody else have similar issues? Quote Link to comment Share on other sites More sharing options...
M.Ammar Posted October 31, 2021 Share Posted October 31, 2021 hi I am using both google fonts and some installed fonts for reports I have tested Delphi 11 and I have no font issues with uniGUI 1.90.0.1554. Quote Link to comment Share on other sites More sharing options...
Wilton Ergon Posted November 1, 2021 Share Posted November 1, 2021 On 31/10/2021 at 07:13, M.Ammar said: Oi Estou usando fontes do google e algumas fontes instaladas para relatórios Testei o Delphi 11 e não tenho problemas de fonte com o uniGUI 1.90.0.1554. Could you share how you use google fonts? Quote Link to comment Share on other sites More sharing options...
Marlon Nardi Posted November 1, 2021 Share Posted November 1, 2021 2 hours ago, wilton_rad said: Could you share how you use google fonts? use in TUniServerModule.UniGUIServerModuleBeforeInit Sample: UniAddCSSLibrary('https://fonts.googleapis.com/css?family=Roboto', True, [upoAsync, upoPlatformBoth]); Quote Link to comment Share on other sites More sharing options...
Wilton Ergon Posted November 1, 2021 Share Posted November 1, 2021 when adding the link, this will make all labels change their font, or for each label you must indicate the font Quote Link to comment Share on other sites More sharing options...
wjjw Posted November 2, 2021 Author Share Posted November 2, 2021 Hello again, main question was why "some" font not showing correctly. In specific the new standard font from Delphi 11 - "Segoe UI". The Delphi 10 standard font "Tahoma" is still looking fine. Can you confirm that this font "Segoe UI" is shown correctly on your uniGUI projects? /Werner Quote Link to comment Share on other sites More sharing options...
Marlon Nardi Posted November 2, 2021 Share Posted November 2, 2021 20 hours ago, wilton_rad said: when adding the link, this will make all labels change their font, or for each label you must indicate the font for each label you must indicate the font Quote Link to comment Share on other sites More sharing options...
Marlon Nardi Posted November 2, 2021 Share Posted November 2, 2021 3 hours ago, wjjw said: Hello again, main question was why "some" font not showing correctly. In specific the new standard font from Delphi 11 - "Segoe UI". The Delphi 10 standard font "Tahoma" is still looking fine. Can you confirm that this font "Segoe UI" is shown correctly on your uniGUI projects? /Werner Yes the fonts are being displayed correctly. In the latest version of Delphi (11 Alexandria): https://docwiki.embarcadero.com/RADStudio/Alexandria/en/What's_New Changed the default font to Segoe UI, ie all fields in your system where you have not defined a font (be it the default font) The Delphi IDE will change everything to Segoe UI. If your browser is not displaying the font correctly, you probably don't have this font on your machine. So one of the solutions is to load your font as I mentioned before without depending on the local font. Delphi 11 and uniGUI 1.90.1552 https://store.falconsistemas.com.br What operating system are you using, on this machine where the fonts are diverging? Quote Link to comment Share on other sites More sharing options...
stevehodges Posted November 8, 2021 Share Posted November 8, 2021 Same problem on Delphi 11 and 1.90.0.1555 what was the final solution? I have the issue in the treeviews and grids Quote Link to comment Share on other sites More sharing options...
wjjw Posted November 9, 2021 Author Share Posted November 9, 2021 On 11/2/2021 at 1:23 PM, Marlon Nardi said: Yes the fonts are being displayed correctly. In the latest version of Delphi (11 Alexandria): https://docwiki.embarcadero.com/RADStudio/Alexandria/en/What's_New Changed the default font to Segoe UI, ie all fields in your system where you have not defined a font (be it the default font) The Delphi IDE will change everything to Segoe UI. If your browser is not displaying the font correctly, you probably don't have this font on your machine. So one of the solutions is to load your font as I mentioned before without depending on the local font. Delphi 11 and uniGUI 1.90.1552 https://store.falconsistemas.com.br What operating system are you using, on this machine where the fonts are diverging? Hello, when I open your homepage font is NOT correctly shown. It's only correct when you have the font installed on your machine. When you open it on macOS or iOS the font is also broken on your page. Quote Link to comment Share on other sites More sharing options...
wjjw Posted November 9, 2021 Author Share Posted November 9, 2021 7 hours ago, stevehodges said: Same problem on Delphi 11 and 1.90.0.1555 what was the final solution? I have the issue in the treeviews and grids Hello, what I did - I replaced all the "Segoe UI" fonts on the form with the Delphi 10.x default font "Tahoma". Now it looks again fine - on all platforms. Best way to do it fast is to open the form in a text-editor (e.g. Notepad++) and replace all the font names at once. 😉 Recompile the application and deploy it - everything fine now. Still a "workaround". Not sure what was done in the 1.90.0.1555 release - I see that there is a line in the change log with: [UNG-3283] - Delphi 11 default font issues. 1 Quote Link to comment Share on other sites More sharing options...
wjjw Posted November 9, 2021 Author Share Posted November 9, 2021 On 11/2/2021 at 1:23 PM, Marlon Nardi said: Yes the fonts are being displayed correctly. In the latest version of Delphi (11 Alexandria): https://docwiki.embarcadero.com/RADStudio/Alexandria/en/What's_New Changed the default font to Segoe UI, ie all fields in your system where you have not defined a font (be it the default font) The Delphi IDE will change everything to Segoe UI. If your browser is not displaying the font correctly, you probably don't have this font on your machine. So one of the solutions is to load your font as I mentioned before without depending on the local font. Delphi 11 and uniGUI 1.90.1552 https://store.falconsistemas.com.br What operating system are you using, on this machine where the fonts are diverging? Forgot the screenshot. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.