Dyalog / Dyalog/ewc-client

Something Wrong with Font Sizes

Open
#227 2 comments 0 reactions 1 assignee Claimed by @cursork View on GitHub
bug client
Dominant language
JavaScript
Stars
2
Forks
5
PR merge metrics
No merged PRs in 30d

Description

If I create a Win32 Form as follows:

```
'#.F1' ⎕WC 'Form' 'Hello' (10 10)(300 400)('Coord' 'Pixel')
'#.F1.FNT' ⎕WC'Font'('PName' 'Segoe UI')('Size' 30)
'#.F1.TXT' ⎕WC 'Text' 'Hello' (10 10)
'#.F1.TXT2' ⎕WC 'Text' 'Hello' (40 10)('FontObj' 'F1.FNT')
```

The top left of the form looks like this:

![image](https://github.com/user-attachments/assets/cccbf8a2-3e19-45fd-ad49-60eb3f81fe5f)

However, if I do the same with EWC, the default font is smaller, and the one with a specific size is larger:

![image](https://github.com/user-attachments/assets/18089707-d6da-4553-87cc-a52bd6bb9a11)

```
'F1' eWC 'Form' 'Hello' (10 10)(300 400)('Coord' 'Pixel')
{"WC":{"ID":"F1","Properties":{"Caption":"Hello","Coord":"Pixel","Posn":[0,0],"Size":[300,400],"Type":"Form"}}}
'F1.FNT' eWC'Font'('PName' 'Segoe UI')('Size' 30)
{"WC":{"ID":"F1.FNT","Properties":{"PName":"Noto Sans","Size":30,"Type":"Font"}}}
'F1.TXT' eWC 'Text' 'Hello' (10 10)
{"WC":{"ID":"F1.TXT","Properties":{"Points":[[10],[10]],"Text":["Hello"],"Type":"Text"}}}
'F1.TXT2' eWC 'Text' 'Hello' (40 10)('FontObj' 'F1.FNT')
{"WC":{"ID":"F1.TXT2","Properties":{"FontObj":"F1.FNT","Points":[[40],[10]],"Text":["Hello"],"Type":"Text"}}}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.