FET Forum

FET Support (English) => General Stuff => Topic started by: Nikandros on November 15, 2023, 08:29:22 PM

Title: Specify font in printing timetable
Post by: Nikandros on November 15, 2023, 08:29:22 PM
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
Title: Re: Specify font in printing timetable
Post by: Volker Dirr on November 15, 2023, 08:49:57 PM
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.
Title: Re: Specify font in printing timetable
Post by: Liviu Lalescu on November 15, 2023, 08:57:15 PM
Volker, maybe Nikandros means the Print from the FET interface?
Title: Re: Specify font in printing timetable
Post by: Volker Dirr on November 15, 2023, 09:06:40 PM
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.
Title: Re: Specify font in printing timetable
Post by: Liviu Lalescu on November 15, 2023, 09:09:56 PM
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?
Title: Re: Specify font in printing timetable
Post by: Volker Dirr on November 15, 2023, 09:12:40 PM
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.
Title: Re: Specify font in printing timetable
Post by: Volker Dirr on November 15, 2023, 09:14:52 PM
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.
Title: Re: Specify font in printing timetable
Post by: Liviu Lalescu on November 15, 2023, 09:17:49 PM
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.
Title: Re: Specify font in printing timetable
Post by: Volker Dirr on November 15, 2023, 09:21:10 PM
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.
Title: Re: Specify font in printing timetable
Post by: Liviu Lalescu on November 15, 2023, 09:23:06 PM
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.
Title: Re: Specify font in printing timetable
Post by: Volker Dirr on November 15, 2023, 09:56:40 PM
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.
Title: Re: Specify font in printing timetable
Post by: Liviu Lalescu on November 16, 2023, 06:41:53 AM
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?
Title: Re: Specify font in printing timetable
Post by: Volker Dirr on November 16, 2023, 06:56:45 AM
I will be home late today. So i think i can do it tomorrow afternoon.
Title: Re: Specify font in printing timetable
Post by: Nikandros on November 16, 2023, 06:05:08 PM
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.
Title: Re: Specify font in printing timetable
Post by: Liviu Lalescu on November 16, 2023, 06:18:23 PM
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).
Title: Re: Specify font in printing timetable
Post by: Liviu Lalescu on November 17, 2023, 06:33:29 PM
Hello, @Nikandros ,

We just released the new version, FET-6.13.0. It has the option to print all the fonts in black, as opposed to gray and/or silver for some. Thank you for the suggestion!
Title: Re: Specify font in printing timetable
Post by: geokom on November 18, 2023, 06:25:29 PM
Because I had to print the school program on A3 size paper I had to use size 5 font to fit 400 activities. The problem I was having was that the letters that weren't black didn't show up well on the paper so I had to edit the pdf file which was a waste of time. I'm fine with the change you made. Thank you.
Also if you could put a different vertical line in the pdf of the timetable that shows data in time horizontal format when the day changes so that the days can be distinguished from each other
Title: Re: Specify font in printing timetable
Post by: Liviu Lalescu on November 18, 2023, 07:10:23 PM
Thank you for the feed-back, @geokom !

About your dividing the days suggestion, it is difficult to make. I will add it in the TODO. Volker designed this function, and he knows better.
Title: Re: Specify font in printing timetable
Post by: Nikandros on November 19, 2023, 06:20:16 PM
I have tried the new look with the option : black and it really looks very clear now.
Thanks very much for the swift response again