Specify font in printing timetable

Started by Nikandros, November 15, 2023, 08:29:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nikandros

I am printing the timetable in a single page. I am using the newly added option of not adding the teachers' names and so it works fine just with the class_name and the subject name. It works fine, except for the fact that the subject name font appears quite dimmed compared to the class name and thus it is a bit difficult to make out. Is it possible to have the subject name being printed with the same exact font parameters as the class name? Or even better can I specify to use the bold version of the font to make them even more clear? Thanks in advance

Volker Dirr

#1
The table head is by default bold, while table data is by default not bold.
You can make it bold by modifying the css file.
Specifying the font in the interface is a bit "critical" since FET runs and Windows, Linux and MacOS and each systems has other fonts installed and there are thousand of different fonts available. As long as you print on paper only, it is not too critical. But as soon as you publish it as html-file it is critical, since html-files doesn't contain a font and so it will look different with different webbrowsers and operating systems.
But you can also modify the font with css. Just modify the css (see https://www.timetabling.de/manual/FET-manual.en.html#id_45) and add your preferred fontname (see https://www.w3schools.com/css/css_font.asp). Don't forget that it will look different if the font is not installed on the other computer.

Liviu Lalescu

Volker, maybe Nikandros means the Print from the FET interface?

Volker Dirr

Yes, of course he talked about printing from the interface.
But there are a lot of different possibilities that can be modified. The color, bold, underlined, striking out, ...
I don't know how many fonts the QDocument can care about. Especially on different systems.
So it's currently impossible. I have a long day tomorrow (Parants come to school in the afternoon). So i will be home late. I think i can try a bit at the weekend what is possible in the interface. So far he need to export and can modify and print with a webbrowser. But as i said: It will look only on his system like that. It can look totaly different on other computers if he share his modified html with other guys.

Liviu Lalescu

I would like to keep no particular options for font (keep defaults). But maybe you could make the default font for subjects the same as the other fonts?

Volker Dirr

It is always the same font.
It is html-style, that by default headers are bold. so if i write <th> it is bold, while data <td> is not bold. that is importend for blind guys and other computer systems that reads data. they need to know if it is a head or "only" data.

Volker Dirr

if he can't read his default font, then he should setup an other font in his computer systems settings or the webbrowser. FET is currently using HIS default font for the subject and all other stuff. Only the x-axis and y-axis are bold, since this are headers.

Liviu Lalescu

1) I think he means subjects appear grey, not black, while students appear black.

2) @Nikandros , If I remember correctly, you can choose the font from the Setting in FET and it will be respected in Print as well.

Volker Dirr

If I remeber correct the grey color was introduced with html level 3. If he reduce the html level (or increase it to 6 (with the colored background), then it will be always black.
It's also possible to change that in the css file if he need an other html level.

Liviu Lalescu

Volker, we are talking about Print from the FET interface. We cannot choose HTML level here or CSS, it is only level 3 with a constant CSS.

Volker Dirr

hmm.. Sorry. True. I printed from FET the last time many years ago. The feature is only implemented in TiTiTo.
Please use TiTiTo for printing.
We might add that feature also in FET. But only if Liviu agrees. It is a lot of critical work. I can't do that fast, since I must work at school to earn money. In fact I am also too lazy to implement it into FET, since I don't print from FET. But maybe someone sponsors my work time if I implement it into FET.

Liviu Lalescu

Volker, it would be easy to make the color of all the fonts in timetable print dialog black, instead of silver and/or gray. Would you like that? Could you do that?

Volker Dirr

I will be home late today. So i think i can do it tomorrow afternoon.

Nikandros

Thank you very much guys for the detailed discussion. I am not interested in publishing an html file of the timetable. I am merely interested in printing it out in a single page (I will opt for A3 for better clarity). I tried changing the system font but the problem remained. However, it would seem that the last idea of just printing everything in black would definitely suffice my needs, if of course this is something which could be implemented relatively easily and it would not impose a lot of your time. Thanks for your time and effort.

Liviu Lalescu

You are welcome, and thank you for the suggestion! It will be added in the next version, to be released hopefully soon (tomorrow or a bit later).