# 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](https://gamelauncher.gitbook.io/documentation/how-to-show-news-and-alerts/show-your-news-or-changelog)
{% 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="https://4090346021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOQCKadC4SNL7ML9xwPi2%2Fuploads%2FoCOXaXepljom8xhv6Sfy%2Fimage.png?alt=media&#x26;token=e15860e7-b37a-48ac-880e-6a7e12fabe18" 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="https://4090346021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOQCKadC4SNL7ML9xwPi2%2Fuploads%2FaLDnCHXfwBb6IDCGNr0r%2FOpen%20fonts%20folder.gif?alt=media&#x26;token=4ce87172-5e9e-45a9-a88e-9d0900cf1325" alt=""><figcaption><p>Opening Game Launcher Fonts</p></figcaption></figure>

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

<figure><img src="https://4090346021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOQCKadC4SNL7ML9xwPi2%2Fuploads%2FFK1sNRGXhQXGRIdaToek%2Fimage.png?alt=media&#x26;token=05f2d6fb-34b6-4631-b594-09d675539526" 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**

![](https://4090346021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOQCKadC4SNL7ML9xwPi2%2Fuploads%2FSNPQ9iqXMtigdWwmw7qP%2Fimage.png?alt=media\&token=55a3cc02-6064-456c-8dcf-aa7c9c22a975)

### 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="https://4090346021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOQCKadC4SNL7ML9xwPi2%2Fuploads%2FaLVQj942uGmvWkTctb2A%2Fimage.png?alt=media&#x26;token=67c15441-82e6-4f11-b3c1-ebad4fde09af" alt=""><figcaption></figcaption></figure>
