Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.53k stars 173 forks source link

macOS: problem with font size #2264

Closed tatecapone closed 5 years ago

tatecapone commented 5 years ago

Hi Alexey: When I choose the font and set the size, whatever font I pick up, 10 px is too small, like ants, and 11px is too big 🤪... and this didn't happen with the previous version ...

Its Cuda 1.89 Macos Catalina 10.15.1

Alexey-T commented 5 years ago

Can you show screenshot in both cases (of the editor field)?

tatecapone commented 5 years ago

Sure...and you can see how the font always seems to be in bold. Here I use San Francisco mono, very common in Mac, which uses xcode ... but the same thing happens with all ... and even more exaggerated ... Captura de Pantalla 2019-11-05 a la(s) 15 57 37 Captura de Pantalla 2019-11-05 a la(s) 15 57 57 Captura de Pantalla 2019-11-05 a la(s) 15 58 15

Difference between Inconsolata 13 and 14 pt... again apppears in bold and i dont use bold in my themes...

Captura de Pantalla 2019-11-05 a la(s) 16 04 54 Captura de Pantalla 2019-11-05 a la(s) 16 05 16 in the last snapshot the e of true appears cutted...I put it in bold so you can see the exaggerated thickness

Alexey-T commented 5 years ago

About font size: will think about it. About always bold font: what syntax-theme do you use? is it new?

Alexey-T commented 5 years ago

Can you share the syntax-theme "zen"? maybe it has always bold font?

tatecapone commented 5 years ago

Zen.cuda-theme-syntax.zip

Zen.cuda-theme-ui.zip

Here is the theme...is a duplicate of other and customize to my taste...

tatecapone commented 5 years ago

I understand the problem of the bold in the dark themes… but I have tried all the options of fonts since antialias and the others and only antialias makes the font illegible… in the clear themes the fonts looks much better, as it is… in spite of of the size

Alexey-T commented 5 years ago

Screenshot from 2019-11-06 00-56-47

I don't see always bold on Linux, so always bold on macOS is strange.. will think

tatecapone commented 5 years ago

I also thought that I could be a macos problem ... I'll try the same font you use ... Looks good my theme...😜...make it cudatext dark by default...hahaa

tatecapone commented 5 years ago

Its the same, nothing change.... Captura de Pantalla 2019-11-06 a la(s) 09 49 26 Captura de Pantalla 2019-11-06 a la(s) 09 49 29

Alexey-T commented 5 years ago

I just updated plugin "Testing of dialog API". Install it (Plugins / Addon Manager / Install). Run its command "Plugins / Testing of dialog API / test labels rendering".

tatecapone commented 5 years ago

SF Mono, size 12.... Captura de Pantalla 2019-11-06 a la(s) 15 58 54

Inconsolata, size 14

Captura de Pantalla 2019-11-06 a la(s) 16 02 56

Test: Captura de Pantalla 2019-11-06 a la(s) 16 05 44 Size 9 already looks fat By the way I tell you that I can not access the web cutatext….…. 🙃..It is already the second or third day that occurs

Alexey-T commented 5 years ago

Screenshot of new plugin looks ok. Editor text looks ok too? Plugin don't show "always bold font", but editor shows "always bold"? With "SF Mono" and default Cudatext theme?

Alexey-T commented 5 years ago

Size 9 already looks fat

You mean it is like bold? but screenshot of plugin shows that normal is NOT bold.

tatecapone commented 5 years ago

Here is SF mono with size 9, look the difference between strings value type, and the other text...that was I mean with fat. Captura de Pantalla 2019-11-07 a la(s) 10 05 26

Alexey-T commented 5 years ago

I tested on macOS 10.11 -

Do you confirm it?

tatecapone commented 5 years ago

Monaco size 10 for To be better appreciated...

Captura de Pantalla 2019-11-07 a la(s) 11 37 55

Captura de Pantalla 2019-11-07 a la(s) 11 34 10

Menlo menlo1 menlo2

Inconsolata, At least mine, it doesn't have a bold version

tatecapone commented 5 years ago

The strange thing is, for example in SF Mono, the string types look good ... and the rest of the code does not ...

Alexey-T commented 5 years ago

Pls show screenshot of "labels render" plugin for font Menlo.

tatecapone commented 5 years ago

In labels render looks very good, It's more, looks better live than in the picture

Captura de Pantalla 2019-11-07 a la(s) 12 43 50 Captura de Pantalla 2019-11-07 a la(s) 12 45 52 Captura de Pantalla 2019-11-07 a la(s) 12 46 23 Captura de Pantalla 2019-11-07 a la(s) 12 46 33

Alexey-T commented 5 years ago

I think no bug here, font Menlo is not always bold. Do this: in JSON file, type "truez", look how font changes when you add "z" at end of "truez". it must change when "true" changes to "truez".

tatecapone commented 5 years ago

truez anywhere? Captura de Pantalla 2019-11-07 a la(s) 12 52 03

nothing change

Alexey-T commented 5 years ago

Strange. Maybe some Catalina issue. I will ask Lazarus developers.

tatecapone commented 5 years ago

Yep...I think so...They soften the fonts a lot...sorry for the wasted time...

tatecapone commented 5 years ago

I have deactivated the source smoothing of the general options Victor Mono size 10 Captura de Pantalla 2019-11-07 a la(s) 13 01 20

still look diferent in the labels rendered but is ok... Captura de Pantalla 2019-11-07 a la(s) 13 02 23 another think...Victor mono has font ligatures...cudatext ligatures is on...but in the editor doesnt work...🧐

tatecapone commented 5 years ago

Ok...neither font with ligatures work..

Alexey-T commented 5 years ago

Issue #2265 is about ligatures, moved there

Alexey-T commented 5 years ago

Maybe try this trick? https://ahmadawais.com/fix-macos-mojave-font-rendering-issue/

tatecapone commented 5 years ago

Yes!, thanks for the trick...It looks much better now ... as it should look Menlo 10 Captura de Pantalla 2019-11-07 a la(s) 14 18 44

Compared with the before screenshot menlo 10 68398007-d45c8280-0152-11ea-8e22-d26d0cf8889c

Alexey-T commented 5 years ago

Good that it helped.

tatecapone commented 5 years ago

I appreciate it a lot ... thanks for your interest, it's very kind of you...😉

2019-11-07 17:31:22 +0000 Alexey notifications@github.com :

Good that it helped.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Alexey-T/CudaText/issues/2264?email_source=notifications&email_token=AJHYJAX2QPFSQBCZTW4QSRDQSRGGVA5CNFSM4JJET62KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDNGDSI#issuecomment-551182793, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJHYJASUTMMOKRY4IJNKR6DQSRGGVANCNFSM4JJET62A .