You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
i worked my way through the Package and found a way to change the Font of a individual Cell
The way it works is basically like the highlights: i have a function in functions.py "add_hifont", which adds a key to the cell_options. in my case just "True" and "False" but for custom Fonts the Font could be passed instead of "True".
Then in the sheet.py i have the function "highlight_hifont" which calls the "add_hifont" for each cell and sets "True"(same for dehighlight, but with "False")
in the "main_table.py" where text is generated, i added an if-statement which checks the cell-options for "True", if so, change the Font etc.
So in the end the table can look like this:
I hope this can help someone or help implementing the Feature in the Future even if this is just a quick and dirty solution.
Here are the 3 Files: data.zip
The text was updated successfully, but these errors were encountered:
Hello,
i worked my way through the Package and found a way to change the Font of a individual Cell
The way it works is basically like the highlights: i have a function in functions.py "add_hifont", which adds a key to the cell_options. in my case just "True" and "False" but for custom Fonts the Font could be passed instead of "True".
Then in the sheet.py i have the function "highlight_hifont" which calls the "add_hifont" for each cell and sets "True"(same for dehighlight, but with "False")
in the "main_table.py" where text is generated, i added an if-statement which checks the cell-options for "True", if so, change the Font etc.
So in the end the table can look like this:
I hope this can help someone or help implementing the Feature in the Future even if this is just a quick and dirty solution.
Here are the 3 Files: data.zip
The text was updated successfully, but these errors were encountered: