# Allowing untrusted fonts for campaigns

The Windows operating system offers the ability to block untrusted font files. The Nexthink software agent uses an open-source font family optimized for computer screens to render campaign text.

<figure><img src="/files/ZtgRG79J0oU7iHfaQGMd" alt="" width="544"><figcaption><p>Campaign preview using the web interface</p></figcaption></figure>

Previewing campaigns from the web interface always uses the correct font. If you suspect campaigns are not always rendered using the official font family:

* Connect to a device.
* Open the local log file in the `%ProgramData%\Nexthink\Logs\User` folder, labeled something like `nxtray*.log` where the `*` represents a combination of the user SID and a sequence of numbers.
* Search for lines containing `QML FontLoader: Cannot load font:` or something similar.

Here is an extract of a log file:

```
[2023-04-13 17:56:51.160][ 7736][10028][W][`anonymous-namespace'::qtMessageHandler] [Qt] qrc:/qml/Constants.qml:157:39: QML FontLoader: Cannot load font: "qrc:/NotoSans-Regular.ttf"
[2023-04-13 17:56:51.160][ 7736][10028][W][`anonymous-namespace'::qtMessageHandler] [Qt] qrc:/qml/Constants.qml:153:39: QML FontLoader: Cannot load font: "qrc:/NotoSansSC-Regular.otf"
[2023-04-13 17:56:51.160][ 7736][10028][W][`anonymous-namespace'::qtMessageHandler] [Qt] qrc:/qml/Constants.qml:149:39: QML FontLoader: Cannot load font: "qrc:/NotoSansJP-Regular.otf"
```

To allow the `nxtray.exe` process to load untrusted fonts:

1. Add a registry key on all devices in `Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options` and name it `nxtray.exe`.
2. In `Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\nxtray.exe` add a new QWORD (64-bit) value named `MitigationOptions` with the hexadecimal value of `2000000000000`.
3. Restart Windows to apply the changes.


---

# 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://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/windows-collector-references/allowing-untrusted-fonts-for-campaigns.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.
