Comments (5)
Also have tried using panda but that's not working either :(.
from pytablewriter.
I just decided to mess w the objects hanging off of pytablewriter instead to get rid of the difficult to read choice of font / size:
self.writer.open(file_path)
self.writer = self.tableWriterClass()
self.writer.MAX_CELL_WIDTH = 15
self.format_table['header']['font_name'] = "Arial"
self.format_table['header']['font_size'] = 14
self.default_format['font_size'] = 14
self.default_format['font_name'] = "Arial"
I'm sure there's more brute force stuff to discover ahead, but it would really be good if the various cell styling things followed patterns of Markdown, etc. such as column centering.
from pytablewriter.
Thank you for your feedback.
Unfortunately, Excel writer classes have not supported style settings for now.
However I have plan to support that feature.
from pytablewriter.
from pytablewriter.
Lovely project @thombashi ! I have the same issue as @jimkohl and ended up solving it the same way. However I believe that a quick and dirty fix would be just to set
Default.FONT_NAME = 'Arial'
Then the style would be just fine and the whole need would disappear. Frankly I believe that 'MS Gothic' is not the best default font for an Excel ;)
Thanks again for your efforts and giving us this great lib!
from pytablewriter.
Related Issues (20)
- Set formatting for specific cell HOT 1
- module 'dataproperty' has no attribute 'PropertyExtractor' HOT 1
- Fix Markdown table alignment row to conform to GFM HOT 4
- Header cells ignore style HOT 3
- Merged rows support
- Unicode text table output from pandas dataframe: turns string objects into numbers and changes their representation HOT 2
- Github Pages fail to render table HOT 5
- Incorrect AsciiDoc table header generated. HOT 1
- Trailing double quote removed from cell data HOT 2
- 0.63.0 - Quoted string quote mark not printed HOT 1
- Markdown save result as file fails HOT 2
- Prevent formatting of float strings HOT 1
- Table generation is slow, even for space aligned HOT 1
- Default thousand separator HOT 2
- Show how to write to file in examples HOT 4
- Fix code scanning alert - Overly permissive regular expression range
- [Bug] ModuleNotFoundError: No module named 'dominate' HOT 2
- New version ignores `header_list` HOT 6
- column name is only showing default A B C D ... HOT 1
- Leading zeros are missing for strings in value_matrix HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytablewriter.