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

Document-level defaults #32

Open
lordofscripts opened this issue May 9, 2024 · 1 comment
Open

Document-level defaults #32

lordofscripts opened this issue May 9, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@lordofscripts
Copy link

  • Is the default page size LETTER? I only see .WithA3Page() and .WithA4Page()
  • What's the default font? Is there a way to specify the document's default font size & name so that I don't have to use the .Size() on every single paragraph?
  • How can I create styles with different font type, size, face for use in Headings, titles & subtitles, code, etc.?
@fumiama fumiama added the documentation Improvements or additions to documentation label Jun 14, 2024
@fumiama
Copy link
Owner

fumiama commented Jun 14, 2024

Is the default page size LETTER?

It is A4.

What's the default font?

See https://github.com/fumiama/go-docx/blob/master/xml/default/word/fontTable.xml

Is there a way to specify the document's default font size ...

Now unavailable.

How can I create styles ...

Change the template to your custom one. The format is like xml/default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants