Change "style" in default config to "text"
Some checks are pending
docs / build up document and deploy (push) Waiting to run

This commit is contained in:
Grant Sanderson 2024-12-11 08:30:31 -06:00
parent 8246d0da5d
commit 4a6a125739
2 changed files with 5 additions and 5 deletions

View file

@ -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:

View file

@ -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