Jump to content

SayWhat

Members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by SayWhat

  1. SayWhat

    Skia and default FontService

    Currently I use a default font service to globally change font/font size. I found it somewhere on the interwebs a while back, and it is great as I no longer have to iterate through all the controls setting them on font change. TDefaultFont = class(TInterfacedObject, IFMXSystemFontService) public function GetDefaultFontFamilyName: string; function GetDefaultFontSize: Single; end; function TDefaultFont.GetDefaultFontFamilyName: string; begin result := 'Segoe UI'; end; function TDefaultFont.GetDefaultFontSize: Single; begin result := 16.0; end; initialization TFont.FontService := TDefaultFont.Create; What I'm looking for is to the do same with skLabel, as this method doesn't work as the library uses TskTextSettings instead of TTextSettings. Any recommendations would be very helpful! ** EDIT ** We have custom controls that use TLabel's - which we swapped out for TskLabel's. We have unique requirements for text formatting that we had to use TCanvas for rendering. Swapping to TskLabels, we don't have to do that anymore! Until we find a global solution, we added to the controls an internal TTextSettings that we pull the global default font values from then assign them to the corresponding skLabel properties. Of course, provided that the TStyledSettings aren't active for the respective property.
  2. SayWhat

    11.2 Pre-Upgrade Checklist / back out plan

    Just installed - coming from 11.1. Getting an A/V in module 'rtl280.bpl' on closing the IDE. Get the error regardless of a project is started/opened or just closing right when hitting the Welcome Screen. I've uninstalled and cleaned registry/directories- reinstalled, and still get the same issue. I did have an MSBUILD.*.ni.dll issue originally, but did a repair in Visual Studio that remedied that. Any ideas?
×