company-mode / company-quickhelp

Documentation popup for Company
GNU General Public License v3.0
374 stars 33 forks source link

How to enlarge the font? #81

Closed NightMachinery closed 6 years ago

NightMachinery commented 6 years ago

Is there any way I can enlarge the font of the tooltip? image

cpitclaudel commented 6 years ago

Yes, it should be possible to customize the tooltip face. You might have to set x-gtk-use-system-tooltips to nil first.

cpitclaudel commented 6 years ago

See https://www.gnu.org/software/emacs/manual/html_node/elisp/Tooltips.html

NightMachinery commented 6 years ago

@cpitclaudel There is no such variable: image

cpitclaudel commented 6 years ago

That's OK: did you customize the tooltip face ?

NightMachinery commented 6 years ago

@cpitclaudel It is currently like this: image But as you see the colors haven't taken effect. And I don't see an option for font size?

NightMachinery commented 6 years ago

BTW these colors were like this from the start (that EDITED is because I changed font family)

NightMachinery commented 6 years ago

I have made the face like this but it has no effect: image

cpitclaudel commented 6 years ago

Sorry, in that case I don't know (I'm not on mac). But this doesn't sound much like a company-quickhelp issue :/

NightMachinery commented 6 years ago

Was this solved somehow? If not, keeping it open is better. Someone might know a fix, after all.

On Tue, Jul 3, 2018 at 1:01 AM Lars Andersen notifications@github.com wrote:

Closed #81 https://github.com/expez/company-quickhelp/issues/81.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/expez/company-quickhelp/issues/81#event-1712485486, or mute the thread https://github.com/notifications/unsubscribe-auth/Aii--jCfD6TepMgGo6rNs0UjlC7lmfXfks5uCoMqgaJpZM4SlfIG .

cpitclaudel commented 6 years ago

The problem isn't in company-quickhelp, but in the way your Emacs displays tooltips (it's using native tooltips, which are not configurable). I'm not sure what the right way is to tell Emacs to use it's own tooltips on mac.

rightpad commented 6 years ago

I'm also experiencing this issue which is preventing me from using this package. In #80 @cpitclaudel made mention of replacing pos-tip with pos-frame by overriding pos-tip's entry points. I'm a relatively new emacs user so I don't have the knowledge on how to do that, so I think including some sample instructions in the README would help mac users a lot. I currently use flycheck-posframe instead of flycheck-postip and it work great cross-platform.

francisbouvier commented 2 years ago

Hi. I know this issue is old but I experience the same problem.

I'm using Emacs 28.1 on MacOS (so no x-gtk-use-system-tooltips). I have customized the tooltip face (backgound color blue and font height 1.5).

Screenshot 2022-09-29 at 14 05 57

So I believe there is a problem in how company-quickhelp (or pos-tip) use face height. I believe https://github.com/company-mode/company-quickhelp/pull/103 is solving the problem (however I haven't try) by defining a custom company-quickhelp-face.

dgutov commented 2 years ago

When you say "taking in account just background color", what do you mean?

In the screenshot the text in the tooltip is noticeably larger than the text in the main window. Isn't that your customization?

francisbouvier commented 2 years ago

Yes the text of the company tooltip is at the good size.

But the text of the company-quickhelp is not, the one saying "Compares two slices and returns wether they are equal." on the right.

dgutov commented 2 years ago

Now I see what you mean, thanks.

It seems like the tooltip face is only honored by tooltip-show, whereas pos-tip calls x-show-tip directly.

I suggest you actually try #103 and see whether is solves the problem for you. And doesn't add any obvious bug on top.