File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ public string FunctionHandler(string input, ILambdaContext context)
7676 /// <param name="args"></param>
7777 private void FontSettings_SubstituteFont ( object sender , SubstituteFontEventArgs args )
7878 {
79- if ( args . OriginalFontName == "Calibri" && args . FontStyle == FontStyle . Regular )
79+ if ( args . OriginalFontName == "Calibri" )
8080 args . AlternateFontStream = new FileStream ( Path . GetFullPath ( @"Data/calibri.ttf" ) , FileMode . Open , FileAccess . Read ) ;
81- else if ( args . OriginalFontName == "Arial" && args . FontStyle == FontStyle . Regular )
81+ else if ( args . OriginalFontName == "Arial" )
8282 args . AlternateFontStream = new FileStream ( Path . GetFullPath ( @"Data/arial.ttf" ) , FileMode . Open , FileAccess . Read ) ;
8383 else
8484 args . AlternateFontStream = new FileStream ( Path . GetFullPath ( @"Data/times.ttf" ) , FileMode . Open , FileAccess . Read ) ;
You can’t perform that action at this time.
0 commit comments