Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cell caption truncated #179

Closed
ChrisVeigl opened this issue Nov 5, 2022 · 4 comments
Closed

cell caption truncated #179

ChrisVeigl opened this issue Nov 5, 2022 · 4 comments
Milestone

Comments

@ChrisVeigl
Copy link
Collaborator

I can happen that cell captions are truncated,
see for example in the german core communicator standard gridset (Transportmittel, Körperhyiene, Unterstützung):
image

@ChrisVeigl ChrisVeigl changed the title cell caption doe not fit exactly cell caption truncated Nov 5, 2022
@arasaac-dga
Copy link
Collaborator

We understand that this issue, it will solve when this improvement (#168) is implemeted.

@klues
Copy link
Contributor

klues commented Nov 8, 2022

The current algorithm for calculating the correct fontsize is already relatively complex, see https://github.com/asterics/AsTeRICS-Grid/blob/master/src/js/util/fontUtil.js#L9
Probably it can be improved, but there are several aspects that have to be considered:

  • I think two or more lines should be allowed (e.g. like at MIR GEFÄLLT NICHT), otherwise the fonts can get very small. However it's not so easy to decide when break lines and when not.
  • It would be possible to somehow include CSS font-stretch (see docs) in order to render fonts more compact, but I don't know if I like it.
  • everything also depends on the screensize, which makes it harder to create a solution that's fitting for every situation.

@arasaac-dga
Copy link
Collaborator

arasaac-dga commented Nov 8, 2022

​As we commented, we think that, perhaps, when it could be develop this improvement to customize cell texts #168 in the settings you can modify the factor for font size (as you can make in collect element) or the % height of the images in cell to adjust as better as possible to your device. Allowing to change the font could help too. Compact fonts don't think that is a solution. ​

@klues
Copy link
Contributor

klues commented Jan 27, 2025

@klues klues closed this as completed Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants