Skip to content

Commit

Permalink
[refactoring] rename "font_resolver" to "fontResolver"
Browse files Browse the repository at this point in the history
  • Loading branch information
asolntsev committed Dec 28, 2023
1 parent 1972cb2 commit df351fe
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public SharedContext() {
}

public SharedContext(UserAgentCallback uac) {
font_resolver = new AWTFontResolver();
fontResolver = new AWTFontResolver();
replacedElementFactory = new SwingReplacedElementFactory();
setMedia("screen");
this.uac = uac;
Expand All @@ -112,7 +112,7 @@ public SharedContext(UserAgentCallback uac) {


public SharedContext(UserAgentCallback uac, FontResolver fr, ReplacedElementFactory ref, TextRenderer tr, float dpi) {
font_resolver = fr;
fontResolver = fr;
replacedElementFactory = ref;
setMedia("screen");
this.uac = uac;
Expand Down Expand Up @@ -143,14 +143,14 @@ public RenderingContext newRenderingContextInstance() {
* @return The fontResolver value
*/
public FontResolver getFontResolver() {
return font_resolver;
return fontResolver;
}

public void flushFonts() {
font_resolver.flushCache();
fontResolver.flushCache();
}

private FontResolver font_resolver;
private FontResolver fontResolver;

/**
* The media for this context
Expand Down Expand Up @@ -442,7 +442,7 @@ public void setFontMapping(String name, Font font) {
}

public void setFontResolver(FontResolver resolver) {
font_resolver = resolver;
fontResolver = resolver;
}

public int getDotsPerPixel() {
Expand Down

0 comments on commit df351fe

Please sign in to comment.