-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#2030] Add support for custom italic, bold, bold-italic fonts
- Loading branch information
Showing
6 changed files
with
160 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
72 changes: 72 additions & 0 deletions
72
src/open_inwoner/configurations/migrations/0060_auto_20240208_1426.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Generated by Django 3.2.23 on 2024-02-08 13:26 | ||
|
||
import django.core.validators | ||
from django.db import migrations | ||
import open_inwoner.configurations.models | ||
import open_inwoner.utils.files | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("configurations", "0059_merge_20240129_1645"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="customfontset", | ||
name="text_body_font", | ||
), | ||
migrations.AddField( | ||
model_name="customfontset", | ||
name="body_font_bold", | ||
field=open_inwoner.configurations.models.CustomFontField( | ||
blank=True, | ||
help_text="Upload bold text body font. TTF font types only.", | ||
null=True, | ||
storage=open_inwoner.utils.files.OverwriteStorage(), | ||
upload_to=open_inwoner.configurations.models.CustomFontSet.update_filename_body_bold, | ||
validators=[django.core.validators.FileExtensionValidator(["ttf"])], | ||
verbose_name="Body font bold", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="customfontset", | ||
name="body_font_bold_italic", | ||
field=open_inwoner.configurations.models.CustomFontField( | ||
blank=True, | ||
help_text="Upload bold italic text body font. TTF font types only.", | ||
null=True, | ||
storage=open_inwoner.utils.files.OverwriteStorage(), | ||
upload_to=open_inwoner.configurations.models.CustomFontSet.update_filename_body_bold_italic, | ||
validators=[django.core.validators.FileExtensionValidator(["ttf"])], | ||
verbose_name="Body font bold italic", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="customfontset", | ||
name="body_font_italic", | ||
field=open_inwoner.configurations.models.CustomFontField( | ||
blank=True, | ||
help_text="Upload italic text body font. TTF font types only.", | ||
null=True, | ||
storage=open_inwoner.utils.files.OverwriteStorage(), | ||
upload_to=open_inwoner.configurations.models.CustomFontSet.update_filename_body_italic, | ||
validators=[django.core.validators.FileExtensionValidator(["ttf"])], | ||
verbose_name="Body font italic", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="customfontset", | ||
name="body_font_regular", | ||
field=open_inwoner.configurations.models.CustomFontField( | ||
blank=True, | ||
help_text="Upload regular text body font. TTF font types only.", | ||
null=True, | ||
storage=open_inwoner.utils.files.OverwriteStorage(), | ||
upload_to=open_inwoner.configurations.models.CustomFontSet.update_filename_body, | ||
validators=[django.core.validators.FileExtensionValidator(["ttf"])], | ||
verbose_name="Body font regular", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters