@@ -289,25 +289,35 @@ private async Task ImportChanges(IEnumerable<FluentInputFileEventArgs> files)
289289 }
290290 }
291291
292+ public enum OutlineStyleSupport
293+ {
294+ None = 0 ,
295+ ReadOnly = 1 ,
296+ ReadWrite = 2 ,
297+ }
298+
292299 public class BackendStyleSupport ( )
293300 {
294301 [ Display ( Name = "Backend" ) ]
295302 public string ? Backend { get ; set ; }
303+
296304 [ Display ( Name = "Bold" ) ]
297- public bool Bold { get ; set ; }
305+ public OutlineStyleSupport Bold { get ; set ; }
306+
298307 [ Display ( Name = "Italic" ) ]
299- public bool Italic { get ; set ; }
308+ public OutlineStyleSupport Italic { get ; set ; }
309+
300310 [ Display ( Name = "Bold & Italic" ) ]
301- public bool BoldItalic { get ; set ; }
311+ public OutlineStyleSupport BoldItalic { get ; set ; }
302312 }
303313
304314 public IQueryable < BackendStyleSupport > GetBackendStyleSupport ( )
305315 {
306316 return new [ ]
307317 {
308- new BackendStyleSupport ( ) { Backend = "iText" , Bold = true , Italic = true , BoldItalic = false } ,
309- new BackendStyleSupport ( ) { Backend = "PdfSharpCore" , Bold = true , Italic = true , BoldItalic = true } ,
310- new BackendStyleSupport ( ) { Backend = "MuPDF.js" , Bold = false , Italic = false , BoldItalic = false } ,
318+ new BackendStyleSupport ( ) { Backend = "iText" , Bold = OutlineStyleSupport . ReadWrite , Italic = OutlineStyleSupport . ReadWrite , BoldItalic = OutlineStyleSupport . ReadOnly } ,
319+ new BackendStyleSupport ( ) { Backend = "PdfSharpCore" , Bold = OutlineStyleSupport . ReadWrite , Italic = OutlineStyleSupport . ReadWrite , BoldItalic = OutlineStyleSupport . ReadWrite } ,
320+ new BackendStyleSupport ( ) { Backend = "MuPDF.js" , Bold = OutlineStyleSupport . None , Italic = OutlineStyleSupport . None , BoldItalic = OutlineStyleSupport . None } ,
311321 } . AsQueryable ( ) ;
312322 }
313323
0 commit comments