Skip to content

qt: Call GUIUtil::loadFonts earlier - #3593

Merged
UdjinM6 merged 2 commits into
dashpay:developfrom
xdustinface:pr-ui-font-loading
Jul 8, 2020
Merged

qt: Call GUIUtil::loadFonts earlier#3593
UdjinM6 merged 2 commits into
dashpay:developfrom
xdustinface:pr-ui-font-loading

Conversation

@xdustinface

@xdustinfacexdustinface commented Jul 8, 2020

Copy link
Copy Markdown

This was added in #3555 but i just realised BitcoinCore::baseInitialize isn't the best place to load the fonts. Reason why i moved it to where is is with this PR:

  • It's after the creation of OptionsModel which is required because we will later have font realted settings and their defaults should be set before the call of GUIUtil::loadFonts.
  • It's before the first call of any font related helper as they depend on GUIUtil::loadFonts.

Before there is any usage of the font helpers.
@UdjinM6UdjinM6 changed the title qt: Call GUIUtil::loadFonts earlier.qt: Call GUIUtil::loadFonts earlierJul 8, 2020
@UdjinM6UdjinM6 added this to the 17 milestone Jul 8, 2020
UdjinM6
UdjinM6 previously approved these changes Jul 8, 2020

@UdjinM6UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and font cmd-line settings still work as expected.

Slightly tested ACK

gitlab is having some internal issues though, so we'll have to wait until it's fixed and tests are green

Comment threadsrc/qt/dash.cpp Outdated
Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>

@PastaPastaPastaPastaPastaPasta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@UdjinM6UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@UdjinM6
UdjinM6 merged commit c21cfc2 into dashpay:developJul 8, 2020
xdustinface added a commit to xdustinface/dash that referenced this pull request Sep 1, 2020
* qt: Call GUIUtil::loadFonts earlier.
Before there is any usage of the font helpers.
* Apply review suggestion
Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
@UdjinM6UdjinM6 modified the milestones: 17, 16Sep 4, 2020
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Mar 10, 2022
* qt: Call GUIUtil::loadFonts earlier.
Before there is any usage of the font helpers.
* Apply review suggestion
Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@xdustinface@UdjinM6@PastaPastaPasta