# Customize News Fonts

{% hint style="warning" %}
This tutorial requires to open *<mark style="color:purple;">**GameLauncher.sln**</mark>* in Visual Studio

Open the *<mark style="color:green;">**MainWindow\.xaml.cs**</mark>* file
{% endhint %}

{% hint style="danger" %}
**Do not change the SubNews directly in the XAML view. Or it doesn't reflect any change. They are created internally. Use the below tutorial for that.**
{% endhint %}

{% hint style="info" %}
If you want to change other elements displayed like the text content, image, or title, and other elements, please go here -> [Show your News or Changelog](/documentation/how-to-show-news-and-alerts/show-your-news-or-changelog.md)
{% endhint %}

The subnews are created ***internally*** in Game Launcher by the function

* **CreateSubNewsElement ()**

This functions creates the subnews elements in the Launcher Window.

{% hint style="info" %}
**For editing the News, change them directly in the XAML**
{% endhint %}

These are the SubNews (They aren't the same)

<figure><img src="/files/XG4SRFJIgCKnvDggNhzv" alt=""><figcaption><p>SubNews</p></figcaption></figure>

## Assign your own font

### Insert your new font

The default fonts are in the <mark style="color:yellow;">**GameLauncher/Fonts**</mark> folder

In the **Game Launcher Solution Explorer** -> **Right Click on Fonts** -> **Open Folder in File Explorer**

<figure><img src="/files/weAqVuuzoy5qznmI5VFk" alt=""><figcaption><p>Opening Game Launcher Fonts</p></figcaption></figure>

**Move your new font to this folder (.ttf files)**

<figure><img src="/files/iKHhMMi3CbRGjt1gSWT6" alt=""><figcaption><p>Game Launcher Default Fonts</p></figcaption></figure>

When your new font appears in Visual Studio, **Select it**

In the **Propierties Window** set the **Build Action** to **Resource**

![](/files/bgNYtgeLUcNRRsVpoL7m)

### Using the font in the news

Search for the function ***CreateNewsElement () or CreateSubNewsElement ()***

Look for **FontFamiliy** and change the path to ***Fonts/#YourFont***

`FontFamily = new FontFamily (new Uri ("pack://application:,,,/"), "./Fonts/#Dosis"),`

<figure><img src="/files/DOpFBztEkOnC1nH3njrm" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gamelauncher.gitbook.io/documentation/customization/customize-news-fonts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
