Back to Devexpress

ASPxRichEditFont.UseGoogleFonts Property

aspnet-devexpress-dot-web-dot-aspxrichedit-dot-aspxricheditfont-d7e51907.md

latest2.1 KB
Original Source

ASPxRichEditFont.UseGoogleFonts Property

Specifies whether the font’s source files should be downloaded from Google Fonts.

Namespace : DevExpress.Web.ASPxRichEdit

Assembly : DevExpress.Web.ASPxRichEdit.v25.2.dll

NuGet Package : DevExpress.Web.Office

Declaration

csharp
[DefaultValue(false)]
public bool UseGoogleFonts { get; set; }
vb
<DefaultValue(False)>
Public Property UseGoogleFonts As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true, to download the source files from Google Fonts; otherwise, false.

|

Remarks

See the Font Management topic to learn more about fonts in the ASPxRichEdit control.

aspx
<head runat="server">
  <%-- register the fonts on the webpage --%>
  <link href="https://fonts.googleapis.com/css?family=Lemonada|Roboto+Mono&display=block" rel="stylesheet" />
</head>
<dx:ASPxRichEdit ID="ASPxRichEdit1" runat="server" WorkDirectory="~\App_Data\WorkDirectory">
  <Settings>
    <Fonts>
      <FontCollection>
        <dx:ASPxRichEditFont FontFamily="Lemonada" Name="Lemonada" UseGoogleFonts="true" />
        <dx:ASPxRichEditFont FontFamily="Roboto Mono" Name="Roboto Mono" UseGoogleFonts="true" />
      </FontCollection>
    </Fonts>
  </Settings>
</dx:ASPxRichEdit>

See Also

ASPxRichEditFont Class

ASPxRichEditFont Members

DevExpress.Web.ASPxRichEdit Namespace