web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Rich Text Control - Fo...
Power Apps
Unanswered

Rich Text Control - Font and Font size

(0) ShareShare
ReportReport
Posted on by 15

Hello,

 

In the model-driven app, Is there a way I can set a default Font and Font size for the rich text control? The users are using different fonts and the SSRS reports do not look good with different font and font sizes. 

Categories:
I have the same question (0)
  • Static Profile Picture
    118 on at

    Hi @snaz ,

    1. Set Control Properties: When you add a Rich Text control to your app, you can access its properties. Look for properties related to formatting, such as "Font" and "Font Size." You might be able to set these properties to a desired default value. However, keep in mind that this might not prevent users from changing the font and font size manually.

    2. Use Defaults in Formulas: If the properties don't allow direct setting of defaults, you might need to use formulas to enforce defaults. For example, you can create a formula that sets the font and font size every time the user interacts with the control.

      Set(RichTextControl.Font, "YourDefaultFont");
      Set(RichTextControl.FontSize, YourDefaultFontSize);
    3. Validation and Data Transformation: In your app's logic, you can add validation and data transformation steps to ensure that the text entered into the Rich Text control adheres to a certain formatting. This can include writing formulas that check and modify the font and font size of the text. This way, even if users use different fonts and sizes, you can manipulate the entered text before using it in your SSRS reports.

    4. Custom Component or Customization: Depending on your specific needs and the capabilities of Power Apps at the time, you might consider creating a custom component or exploring more advanced customization options that give you greater control over the Rich Text control's appearance and behavior.

     

    Best regards,

    Anton Nyrkov

  • snaz Profile Picture
    15 on at

    Sorry, forgot to mention, this is for the model-driven app

  • Static Profile Picture
    118 on at

    Oh, in this way you can try this one.

    1. Use Theme and CSS Customization: Power Apps allows you to define themes and apply custom CSS. While this may not directly control the font within the rich text control, it could help maintain a consistent look and feel across the app, which could indirectly affect the rich text control.

    2. User Training: While not a technical solution, you could consider training your users to use a specific font and font size when entering text into the rich text control. This might help align the appearance of the text across the app.

    3. Pre-Processing Text: If you have some level of control over the text entered into the rich text control, you could consider using a script or function to pre-process the text and enforce a consistent font and font size. This could be done by manipulating the HTML or formatting in the text before it's saved.

    4. Custom Control: Depending on your technical expertise, you might consider creating a custom control that extends the functionality of the rich text control. This could potentially allow you to enforce font and font size rules.

    5. Feedback to Microsoft: If this feature is important for your use case, you could provide feedback to Microsoft through the Power Apps Ideas Forum or raise technical support from team. They might consider adding such customization options in future updates based on user demand.

  • NerdingNate Profile Picture
    42 on at

    I ran into this in model-driven apps and went down a rabbit hole. Low and behold, the information was in the Microsoft rich-text documentation the whole time. Here are the big points to get you to the finish line:

    1. You can modify these settings either globally or for individual properties.
    2. To make modifications, add the following web resource to your solution: RTEGlobalConfiguration.json
      1. You can reference a file for this either in the doc I sent, or by using another web resource called RTEGlobalConfiguration_readonly.json
      2. To make modifications, I found that you have to update the JSON file through the classic interface's text editor since the file format for the OOTB web resource was javascript instead of json 😑
      3. As of writing this, I had to add the rich editor control to the component on the form and then point it to the file (path I used was "msdyn_/RichTextEditorControl/RTEGlobalConfiguration.json")

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard