diff options
-rw-r--r-- | api/user.go | 2 | ||||
-rw-r--r-- | config/config.json | 3 | ||||
-rw-r--r-- | config/config_docker.json | 3 | ||||
-rw-r--r-- | utils/config.go | 1 |
4 files changed, 6 insertions, 3 deletions
diff --git a/api/user.go b/api/user.go index 8832ad33f..5d6e649cb 100644 --- a/api/user.go +++ b/api/user.go @@ -626,7 +626,7 @@ func createProfileImage(username string, userId string) ([]byte, *model.AppError initial := string(strings.ToUpper(username)[0]) - fontBytes, err := ioutil.ReadFile(utils.FindDir("web/static/fonts") + "luximbi.ttf") + fontBytes, err := ioutil.ReadFile(utils.FindDir("web/static/fonts") + utils.Cfg.ImageSettings.InitialFont) if err != nil { return nil, model.NewAppError("createProfileImage", "Could not create default profile image font", err.Error()) } diff --git a/config/config.json b/config/config.json index cfb3c2de8..a1e73eb03 100644 --- a/config/config.json +++ b/config/config.json @@ -54,7 +54,8 @@ "PreviewWidth": 1024, "PreviewHeight": 0, "ProfileWidth": 128, - "ProfileHeight": 128 + "ProfileHeight": 128, + "InitialFont": "luximbi.ttf" }, "EmailSettings": { "ByPassEmail" : true, diff --git a/config/config_docker.json b/config/config_docker.json index 2d5a34539..6d220f919 100644 --- a/config/config_docker.json +++ b/config/config_docker.json @@ -54,7 +54,8 @@ "PreviewWidth": 1024, "PreviewHeight": 0, "ProfileWidth": 128, - "ProfileHeight": 128 + "ProfileHeight": 128, + "InitialFont": "luximbi.ttf" }, "EmailSettings": { "ByPassEmail" : true, diff --git a/utils/config.go b/utils/config.go index 6a428a5c1..ce8475894 100644 --- a/utils/config.go +++ b/utils/config.go @@ -74,6 +74,7 @@ type ImageSettings struct { PreviewHeight uint ProfileWidth uint ProfileHeight uint + InitialFont string } type EmailSettings struct { |