# Set Font Size 2.1.50 error

**URL:** <https://forums.ankiweb.net/t/set-font-size-2-1-50-error/19284>\
**Category:** Add-ons\
**Created:** [April 21, 2022, 9:44am UTC](https://forums.ankiweb.net/t/set-font-size-2-1-50-error/19284 "2022-04-21T09:44:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnomek](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@gnomek](https://forums.ankiweb.net/u/gnomek)\
**Post date:** [April 21, 2022, 9:44am UTC](https://forums.ankiweb.net/t/set-font-size-2-1-50-error/19284/1 "2022-04-21T09:44:50Z")

</div>

Please update. All these scaling solutions are not as good as this add-on. I don’t want to scale all elements but to have just bigger font. At present I use font\_size: 24 and scaling to get this font size makes other elements ridiculously big.  
My screen resolution is 1440x900, 17 inches.

2.1.50 Linux qt6 version

Running anki with `ANKI_WEBSCALE=1` or `ANKI_NOHIGHDPI=1` doesn’t change anything.  
For example with scaling 120% and starting anki like this:  
`ANKI_WEBSCALE=1 ./anki`

 ![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/6/6228f542539359778c1f7a97f5f5c232ec35ddd0.png)  
Notice the difference between deck name and the rest.

In my opinion this add-on feature should be included in Anki a long time ego to make this problem independent from qt versions.

```auto
When loading '<U+2068>Set Font Size<U+2069>':
<U+2068>Traceback (most recent call last):
File "aqt.addons", line 244, in loadAddons
File "/home/user/.local/share/Anki2/addons21/Set Font Size 651521808/ __init__.py", line 41, in <module>
changeFontSize()
File "/home/user/.local/share/Anki2/addons21/Set Font Size 651521808/ __init__.py", line 39, in changeFontSize
changeWebFontSize()
File "/home/user/.local/share/Anki2/addons21/Set Font Size 651521808/ __init__.py", line 33, in changeWebFontSize
wes = QWebEngineSettings.globalSettings()
File "aqt.qt.qt5_compat", line 350, in __getattr__
AttributeError: type object 'QWebEngineSettings' has no attribute 'globalSettings'

```

**Edition** :  
Thank you for updating.

---

<div class="post-metadata">

**Author:** ![Alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex](https://forums.ankiweb.net/u/Alex)\
**Post date:** [April 27, 2022, 7:17am UTC](https://forums.ankiweb.net/t/set-font-size-2-1-50-error/19284/2 "2022-04-27T07:17:37Z")

</div>

I am having the same problem as @gnomek with Anki 2.1.51 (QT6) on Windows 11. In my case, I need larger font size, and when I increase the value of the User interface to `110%` the font size of some page elements remains small.

 ![SCR_20220427_153405](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/a/ac3838d83ec262ed5750e9bec664f3348135f84e.png)

---

<div class="post-metadata">

**Author:** ![Alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex](https://forums.ankiweb.net/u/Alex)\
**Post date:** [April 28, 2022, 7:58am UTC](https://forums.ankiweb.net/t/set-font-size-2-1-50-error/19284/3 "2022-04-28T07:58:32Z")

</div>

> <https://github.com/cjhoward/anki-set-font-size/issues/3>
>
> This addon is not working with the newer version of Anki 2.1.51 (QT6), on Window…s 11 & Linux Debian.
> 
> Error message:
> 
> \`\`\`
> When loading '⁨Set Font Size⁩':
> ⁨Traceback (most recent call last):
> File "aqt.addons", line 244, in loadAddons
> File "C:\\Users\\a1010\\AppData\\Roaming\\Anki2\\addons21\\651521808\\\_\_init\_\_.py", line 41, in \<module\>
> changeFontSize()
> File "C:\\Users\\a1010\\AppData\\Roaming\\Anki2\\addons21\\651521808\\\_\_init\_\_.py", line 39, in changeFontSize
> changeWebFontSize()
> File "C:\\Users\\a1010\\AppData\\Roaming\\Anki2\\addons21\\651521808\\\_\_init\_\_.py", line 33, in changeWebFontSize
> wes = QWebEngineSettings.globalSettings()
> File "aqt.qt.qt5\_compat", line 350, in \_\_getattr\_\_
> AttributeError: type object 'QWebEngineSettings' has no attribute 'globalSettings'
> \`\`\`
> 
> A big thanks if you find the time the update it.
> 
> Set Font Size issue on \[Anki forum\](https://forums.ankiweb.net/t/set-font-size-2-1-50-error/19284)

---

<div class="post-metadata">

**Author:** ![gnomek](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@gnomek](https://forums.ankiweb.net/u/gnomek)\
**Post date:** [April 28, 2022, 8:54am UTC](https://forums.ankiweb.net/t/set-font-size-2-1-50-error/19284/4 "2022-04-28T08:54:00Z")

</div>

Try running Anki with [this](https://forums.ankiweb.net/t/bug-report-the-user-interface-size-doesnt-work-great-on-wayland/15177/8) option.

I still firmly believe that set font size option should be native in Anki. It is not a criticism but just an opinion that new Anki users shouldn’t face such problem and seek for solutions like this. Setting proper font size should not be dependent on QT bugs or any other third party technologies. All other programs I am aware of that use text have font size.  
Edition:  
It was fixed.

---

<div class="post-metadata">

**Author:** ![Alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex](https://forums.ankiweb.net/u/Alex)\
**Post date:** [April 28, 2022, 10:43am UTC](https://forums.ankiweb.net/t/set-font-size-2-1-50-error/19284/5 "2022-04-28T10:43:05Z")

</div>

Thanks @gnomek for `ANKI_WEBSCALE`. I had requested this feature a long time ago, fearing for this addon to break, and it had just happened 😆
