# Titlebar font popup

**URL:** <https://forum.inductiveautomation.com/t/titlebar-font-popup/20873>\
**Category:** Ignition\
**Created:** [November 14, 2018, 9:59pm UTC](https://forum.inductiveautomation.com/t/titlebar-font-popup/20873 "2018-11-14T21:59:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alemancordero](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@alemancordero](https://forum.inductiveautomation.com/u/alemancordero)\
**Post date:** [November 14, 2018, 9:59pm UTC](https://forum.inductiveautomation.com/t/titlebar-font-popup/20873/1 "2018-11-14T21:59:45Z")

</div>

Excuse me, I’m running my project on two screens, (1920x1080) and (3840x2160), eh popido modify the size of the title bar but the size of the letter I could not do it. my project I worked it in (1920x1080) and I put a script for the redimension a (3840x2160)

a= system.gui.getScreens()  
window=system.nav.openWindow(‘item’)  
system.nav.centerWindow(window)

if(a==[(0,3840,2160)]):  
window.setLocation(1378,593)  
window.setSize(1116,974)

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [November 14, 2018, 10:18pm UTC](https://forum.inductiveautomation.com/t/titlebar-font-popup/20873/2 "2018-11-14T22:18:11Z")

</div>

EDIT: I’m not sure if you’re talking about a component font (font in title bar you create in a window) or the window frame title bar text. This addresses the former, not the latter:

You’re trying to change font size in scripting? Something like this (shows some other sizing and positioning that may be needed along with changing font size, depending on application):

```auto
# Get handle for component.
label = event.source.getComponent('label')
# Scale font from base size of 12 and existing font characteristics.
font = label.font
scaledFont = font.deriveFont(12 * scaleFactor)
# Scale font container height from base of 16.
scaledHeight = 16 * scaleFactor
# Update component font.
label.font = scaledFont
# Update component height and Y position (you could also adjust width and X position, if needed)
system.gui.transform(label, newHeight = scaledHeight, newY = 4 * scaleFactor)

```

---

<div class="post-metadata">

**Author:** ![alemancordero](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@alemancordero](https://forum.inductiveautomation.com/u/alemancordero)\
**Post date:** [November 14, 2018, 11:12pm UTC](https://forum.inductiveautomation.com/t/titlebar-font-popup/20873/3 "2018-11-14T23:12:22Z")

</div>

I mean the text of the window frame

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [November 14, 2018, 11:27pm UTC](https://forum.inductiveautomation.com/t/titlebar-font-popup/20873/4 "2018-11-14T23:27:50Z")

</div>

I’m not sure what platform you’re on, but have you considered HiDPI settings?  
[http://forum.inductiveautomation.com/t/windows-10-hidpi-scaling/16823?u=witman](http://forum.inductiveautomation.com/t/windows-10-hidpi-scaling/16823?u=witman)
