Skip to content

Commit

Permalink
Merge pull request #80 from agibagib/Google_Code_Issue_231
Browse files Browse the repository at this point in the history
Fix for Google Code Issue 231: Bold font emulation for PDF rendering causes black borders around each letter
  • Loading branch information
pbrant committed Aug 9, 2015
2 parents 715e99e + 8cd6a35 commit 293b5e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -502,6 +502,7 @@ public void drawString(String s, float x, float y, JustificationInfo info) {
float lineWidth = fontSize * 0.04f; // 4% of font size
cb.setLineWidth(lineWidth);
resetMode = true;
ensureStrokeColor();
}
if ((fontSpec.fontStyle == IdentValue.ITALIC) && (desc.getStyle() != IdentValue.ITALIC)) {
b = 0f;
Expand Down
Expand Up @@ -511,6 +511,7 @@ public void drawString(String s, float x, float y, JustificationInfo info) {
float lineWidth = fontSize * 0.04f; // 4% of font size
cb.setLineWidth(lineWidth);
resetMode = true;
ensureStrokeColor();
}
if ((fontSpec.fontStyle == IdentValue.ITALIC) && (desc.getStyle() != IdentValue.ITALIC)) {
b = 0f;
Expand Down

0 comments on commit 293b5e3

Please sign in to comment.