mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Change "style" in default config to "text"
Some checks are pending
docs / build up document and deploy (push) Waiting to run
Some checks are pending
docs / build up document and deploy (push) Waiting to run
This commit is contained in:
parent
8246d0da5d
commit
4a6a125739
2 changed files with 5 additions and 5 deletions
|
@ -68,9 +68,9 @@ vmobject:
|
|||
tex:
|
||||
# See tex_templates.yml
|
||||
template: "default"
|
||||
style: # TODO, change to `text`
|
||||
text:
|
||||
font: "Consolas"
|
||||
text_alignment: "LEFT"
|
||||
alignment: "LEFT"
|
||||
embed:
|
||||
exception_mode: "Verbose"
|
||||
resolution_options:
|
||||
|
|
|
@ -157,14 +157,14 @@ class MarkupText(StringMobject):
|
|||
isolate: Selector = re.compile(r"\w+", re.U),
|
||||
**kwargs
|
||||
):
|
||||
default_style = get_global_config()["style"]
|
||||
text_config = get_global_config()["text"]
|
||||
self.text = text
|
||||
self.font_size = font_size
|
||||
self.justify = justify
|
||||
self.indent = indent
|
||||
self.alignment = alignment or default_style["text_alignment"]
|
||||
self.alignment = alignment or text_config["alignment"]
|
||||
self.line_width = line_width
|
||||
self.font = font or default_style["font"]
|
||||
self.font = font or text_config["font"]
|
||||
self.slant = slant
|
||||
self.weight = weight
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue