unit uCEFChromiumFontOptions; {$IFDEF FPC} {$MODE OBJFPC}{$H+} {$ENDIF} {$I cef.inc} {$IFNDEF TARGET_64BITS}{$ALIGN ON}{$ENDIF} {$MINENUMSIZE 4} interface uses {$IFDEF DELPHI16_UP} System.Classes, {$ELSE} Classes, {$ENDIF} uCEFTypes; type /// /// The TChromiumFontOptions properties are used to fill the TCefBrowserSettings record which is used during the browser creation. /// TChromiumFontOptions = class(TPersistent) protected FStandardFontFamily : ustring; FCursiveFontFamily : ustring; FSansSerifFontFamily : ustring; FMinimumLogicalFontSize : Integer; FFantasyFontFamily : ustring; FSerifFontFamily : ustring; FDefaultFixedFontSize : Integer; FDefaultFontSize : Integer; FRemoteFontsDisabled : TCefState; FFixedFontFamily : ustring; FMinimumFontSize : Integer; public /// /// Constructor of TChromiumFontOptions /// constructor Create; virtual; published /// /// Standard font family name. /// property StandardFontFamily : ustring read FStandardFontFamily write FStandardFontFamily; /// /// Fixed font family name. /// property FixedFontFamily : ustring read FFixedFontFamily write FFixedFontFamily; /// /// Serif font family name. /// property SerifFontFamily : ustring read FSerifFontFamily write FSerifFontFamily; /// /// SansSerif font family name. /// property SansSerifFontFamily : ustring read FSansSerifFontFamily write FSansSerifFontFamily; /// /// Cursive font family name. /// property CursiveFontFamily : ustring read FCursiveFontFamily write FCursiveFontFamily; /// /// Fantasy font family name. /// property FantasyFontFamily : ustring read FFantasyFontFamily write FFantasyFontFamily; /// /// Default font size. /// property DefaultFontSize : Integer read FDefaultFontSize write FDefaultFontSize default 0; /// /// Default fixed font size. /// property DefaultFixedFontSize : Integer read FDefaultFixedFontSize write FDefaultFixedFontSize default 0; /// /// Minimum font size. /// property MinimumFontSize : Integer read FMinimumFontSize write FMinimumFontSize default 0; /// /// Minimum logical font size. /// property MinimumLogicalFontSize : Integer read FMinimumLogicalFontSize write FMinimumLogicalFontSize default 0; /// /// Controls the loading of fonts from remote sources. Also configurable using /// the "disable-remote-fonts" command-line switch. /// property RemoteFonts : TCefState read FRemoteFontsDisabled write FRemoteFontsDisabled default STATE_DEFAULT; end; implementation constructor TChromiumFontOptions.Create; begin FStandardFontFamily := ''; FCursiveFontFamily := ''; FSansSerifFontFamily := ''; FMinimumLogicalFontSize := 0; FFantasyFontFamily := ''; FSerifFontFamily := ''; FDefaultFixedFontSize := 0; FDefaultFontSize := 0; FRemoteFontsDisabled := STATE_DEFAULT; FFixedFontFamily := ''; FMinimumFontSize := 0; end; end.