-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDWrite.vb
More file actions
7382 lines (6833 loc) · 443 KB
/
DWrite.vb
File metadata and controls
7382 lines (6833 loc) · 443 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Imports System
Imports System.Runtime.InteropServices
Imports GlobalStructures
'C: \Users\Christian\.nuget\packages\microsoft.windowsappsdk\1.5.240627000\include
'dwrite_core.h
Namespace Global.DWrite
Friend Class DWriteTools
' C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.5_5001.178.1908.0_x86__8wekyb3d8bbwe
' C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.5_5001.178.1908.0_x64__8wekyb3d8bbwe
<DllImport("DWriteCore.dll", SetLastError:=True, CharSet:=CharSet.Unicode)>
Public Shared Function DWriteCoreCreateFactory(factoryType As DWRITE_FACTORY_TYPE, ByRef iid As Guid, <Out> ByRef factory As IntPtr) As HRESULT
End Function
<DllImport("DWrite.dll", SetLastError:=True, CharSet:=CharSet.Unicode)>
Public Shared Function DWriteCreateFactory(factoryType As DWRITE_FACTORY_TYPE, ByRef iid As Guid, <Out> ByRef factory As IntPtr) As HRESULT
End Function
Public Shared CLSID_DWriteFactory As Guid = New Guid("B859EE5A-D838-4B5B-A2E8-1ADC7D93DB48")
Public Shared CLSID_DWriteFactory1 As Guid = New Guid("30572f99-dac6-41db-a16e-0486307e606a")
Public Shared CLSID_DWriteFactory2 As Guid = New Guid("0439fc60-ca44-4994-8dee-3a9af7b732ec")
Public Shared CLSID_DWriteFactory3 As Guid = New Guid("9A1B41C3-D3BB-466A-87FC-FE67556A3B65")
Public Shared CLSID_DWriteFactory4 As Guid = New Guid("4B0B5BD3-0797-4549-8AC5-FE915CC53856")
Public Shared CLSID_DWriteFactory5 As Guid = New Guid("958DB99A-BE2A-4F09-AF7D-65189803D1D3")
Public Shared CLSID_DWriteFactory6 As Guid = New Guid("F3744D80-21F7-42EB-B35D-995BC72FC223")
Public Shared CLSID_DWriteFactory7 As Guid = New Guid("35D0E0B3-9076-4D2E-A016-A91B568A06B4")
End Class
<StructLayout(LayoutKind.Sequential)>
Public Structure SIZE
Public cx As Integer
Public cy As Integer
Public Sub New(cx As Integer, cy As Integer)
Me.cx = cx
Me.cy = cy
End Sub
End Structure
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Class LOGFONT
Public lfHeight As Integer = 0
Public lfWidth As Integer = 0
Public lfEscapement As Integer = 0
Public lfOrientation As Integer = 0
Public lfWeight As Integer = 0
Public lfItalic As Byte = 0
Public lfUnderline As Byte = 0
Public lfStrikeOut As Byte = 0
Public lfCharSet As Byte = 0
Public lfOutPrecision As Byte = 0
Public lfClipPrecision As Byte = 0
Public lfQuality As Byte = 0
Public lfPitchAndFamily As Byte = 0
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=32)>
Public lfFaceName As String = String.Empty
End Class
<StructLayout(LayoutKind.Sequential)>
Public Structure D2D1_POINT_2F
Public x As Single
Public y As Single
Public Sub New(x As Single, y As Single)
Me.x = x
Me.y = y
End Sub
End Structure
Public Enum DWRITE_FACTORY_TYPE
''' <summary>
''' Shared factory allow for re-use of cached font data across multiple in process components.
''' Such factories also take advantage of cross process font caching components for better performance.
''' </summary>
DWRITE_FACTORY_TYPE_SHARED
''' <summary>
''' Objects created from the isolated factory do not interact with internal DirectWrite state from other components.
''' </summary>
DWRITE_FACTORY_TYPE_ISOLATED
End Enum
<ComImport>
<Guid("b859ee5a-d838-4b5b-a2e8-1adc7d93db48")>
<InterfaceType(ComInterfaceType.InterfaceIsIUnknown)>
Public Interface IDWriteFactory
Function GetSystemFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Function CreateCustomFontCollection(collectionLoader As IDWriteFontCollectionLoader, collectionKey As IntPtr, collectionKeySize As Integer, <Out> ByRef fontCollection As IDWriteFontCollection) As HRESULT
<PreserveSig>
Function RegisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
<PreserveSig>
Function UnregisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
'HRESULT CreateFontFileReference(string filePath, System.Runtime.InteropServices.ComTypes.FILETIME lastWriteTime, out IDWriteFontFile fontFile);
<PreserveSig>
Function CreateFontFileReference(
<MarshalAs(UnmanagedType.LPWStr)> filePath As String, lastWriteTime As IntPtr, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Function CreateCustomFontFileReference(fontFileReferenceKey As IntPtr, fontFileReferenceKeySize As UInteger, fontFileLoader As IDWriteFontFileLoader, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
'HRESULT CreateCustomFontFileReference(IntPtr fontFileReferenceKey, uint fontFileReferenceKeySize,
'[In()][MarshalAs(UnmanagedType.IUnknown)] object fontFileLoader,
'[Out, MarshalAs(UnmanagedType.IUnknown)] out IDWriteFontFile fontFile);
<PreserveSig>
Function CreateFontFace(fontFaceType As DWRITE_FONT_FACE_TYPE, numberOfFiles As Integer,
<MarshalAs(UnmanagedType.LPArray, SizeParamIndex:=1)> fontFiles As IDWriteFontFile(), faceIndex As Integer, fontFaceSimulationFlags As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFace As IDWriteFontFace) As HRESULT
<PreserveSig>
Function CreateRenderingParams(<Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Function CreateMonitorRenderingParams(monitor As IntPtr, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Function CreateCustomRenderingParams(gamma As Single, enhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Function RegisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
<PreserveSig>
Function UnregisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
<PreserveSig>
Function CreateTextFormat(
<MarshalAs(UnmanagedType.LPWStr)> fontFamilyName As String, fontCollection As IDWriteFontCollection, fontWeight As DWRITE_FONT_WEIGHT, fontStyle As DWRITE_FONT_STYLE, fontStretch As DWRITE_FONT_STRETCH, fontSize As Single,
<MarshalAs(UnmanagedType.LPWStr)> localeName As String, <Out> ByRef textFormat As IDWriteTextFormat) As HRESULT
<PreserveSig>
Function CreateTypography(<Out> ByRef typography As IDWriteTypography) As HRESULT
<PreserveSig>
Function GetGdiInterop(<Out> ByRef gdiInterop As IDWriteGdiInterop) As HRESULT
<PreserveSig>
Function CreateTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, maxWidth As Single, maxHeight As Single, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Function CreateGdiCompatibleTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, layoutWidth As Single, layoutHeight As Single, pixelsPerDip As Single, transform As DWRITE_MATRIX, useGdiNatural As Boolean, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Function CreateEllipsisTrimmingSign(textFormat As IDWriteTextFormat, <Out> ByRef trimmingSign As IDWriteInlineObject) As HRESULT
<PreserveSig>
Function CreateTextAnalyzer(<Out> ByRef textAnalyzer As IDWriteTextAnalyzer) As HRESULT
<PreserveSig>
Function CreateNumberSubstitution(substitutionMethod As DWRITE_NUMBER_SUBSTITUTION_METHOD, localeName As String, ignoreUserOverride As Boolean, <Out> ByRef numberSubstitution As IDWriteNumberSubstitution) As HRESULT
<PreserveSig>
Function CreateGlyphRunAnalysis(ByRef glyphRun As DWRITE_GLYPH_RUN, pixelsPerDip As Single, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
End Interface
<ComImport>
<Guid("30572f99-dac6-41db-a16e-0486307e606a")>
<InterfaceType(ComInterfaceType.InterfaceIsIUnknown)>
Public Interface IDWriteFactory1
Inherits IDWriteFactory
#Region "IDWriteFactory"
Overloads Function GetSystemFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontCollection(collectionLoader As IDWriteFontCollectionLoader, collectionKey As IntPtr, collectionKeySize As Integer, <Out> ByRef fontCollection As IDWriteFontCollection) As HRESULT
<PreserveSig>
Overloads Function RegisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
<PreserveSig>
Overloads Function UnregisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
'new HRESULT CreateFontFileReference(string filePath, System.Runtime.InteropServices.ComTypes.FILETIME lastWriteTime, out IDWriteFontFile fontFile);
<PreserveSig>
Overloads Function CreateFontFileReference(
<MarshalAs(UnmanagedType.LPWStr)> filePath As String, lastWriteTime As IntPtr, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontFileReference(fontFileReferenceKey As IntPtr, fontFileReferenceKeySize As UInteger, fontFileLoader As IDWriteFontFileLoader, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateFontFace(fontFaceType As DWRITE_FONT_FACE_TYPE, numberOfFiles As Integer,
<MarshalAs(UnmanagedType.LPArray, SizeParamIndex:=1)> fontFiles As IDWriteFontFile(), faceIndex As Integer, fontFaceSimulationFlags As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFace As IDWriteFontFace) As HRESULT
<PreserveSig>
Overloads Function CreateRenderingParams(<Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateMonitorRenderingParams(monitor As IntPtr, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams(gamma As Single, enhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function RegisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function UnregisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function CreateTextFormat(
<MarshalAs(UnmanagedType.LPWStr)> fontFamilyName As String, fontCollection As IDWriteFontCollection, fontWeight As DWRITE_FONT_WEIGHT, fontStyle As DWRITE_FONT_STYLE, fontStretch As DWRITE_FONT_STRETCH, fontSize As Single,
<MarshalAs(UnmanagedType.LPWStr)> localeName As String, <Out> ByRef textFormat As IDWriteTextFormat) As HRESULT
<PreserveSig>
Overloads Function CreateTypography(<Out> ByRef typography As IDWriteTypography) As HRESULT
<PreserveSig>
Overloads Function GetGdiInterop(<Out> ByRef gdiInterop As IDWriteGdiInterop) As HRESULT
<PreserveSig>
Overloads Function CreateTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, maxWidth As Single, maxHeight As Single, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateGdiCompatibleTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, layoutWidth As Single, layoutHeight As Single, pixelsPerDip As Single, transform As DWRITE_MATRIX, useGdiNatural As Boolean, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateEllipsisTrimmingSign(textFormat As IDWriteTextFormat, <Out> ByRef trimmingSign As IDWriteInlineObject) As HRESULT
<PreserveSig>
Overloads Function CreateTextAnalyzer(<Out> ByRef textAnalyzer As IDWriteTextAnalyzer) As HRESULT
<PreserveSig>
Overloads Function CreateNumberSubstitution(substitutionMethod As DWRITE_NUMBER_SUBSTITUTION_METHOD, localeName As String, ignoreUserOverride As Boolean, <Out> ByRef numberSubstitution As IDWriteNumberSubstitution) As HRESULT
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis(ByRef glyphRun As DWRITE_GLYPH_RUN, pixelsPerDip As Single, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
#End Region
<PreserveSig>
Function GetEudcFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Function CreateCustomRenderingParams1(gamma As Single, enhancedContrast As Single, enhancedContrastGrayscale As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams1) As HRESULT
End Interface
<ComImport>
<Guid("0439fc60-ca44-4994-8dee-3a9af7b732ec")>
<InterfaceType(ComInterfaceType.InterfaceIsIUnknown)>
Public Interface IDWriteFactory2
Inherits IDWriteFactory1
#Region "IDWriteFactory1"
#Region "IDWriteFactory"
<PreserveSig>
Overloads Function GetSystemFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontCollection(collectionLoader As IDWriteFontCollectionLoader, collectionKey As IntPtr, collectionKeySize As Integer, <Out> ByRef fontCollection As IDWriteFontCollection) As HRESULT
<PreserveSig>
Overloads Function RegisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
<PreserveSig>
Overloads Function UnregisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
'new HRESULT CreateFontFileReference(string filePath, System.Runtime.InteropServices.ComTypes.FILETIME lastWriteTime, out IDWriteFontFile fontFile);
<PreserveSig>
Overloads Function CreateFontFileReference(
<MarshalAs(UnmanagedType.LPWStr)> filePath As String, lastWriteTime As IntPtr, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontFileReference(fontFileReferenceKey As IntPtr, fontFileReferenceKeySize As UInteger, fontFileLoader As IDWriteFontFileLoader, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateFontFace(fontFaceType As DWRITE_FONT_FACE_TYPE, numberOfFiles As Integer,
<MarshalAs(UnmanagedType.LPArray, SizeParamIndex:=1)> fontFiles As IDWriteFontFile(), faceIndex As Integer, fontFaceSimulationFlags As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFace As IDWriteFontFace) As HRESULT
<PreserveSig>
Overloads Function CreateRenderingParams(<Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateMonitorRenderingParams(monitor As IntPtr, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams(gamma As Single, enhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function RegisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
Overloads Function UnregisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function CreateTextFormat(
<MarshalAs(UnmanagedType.LPWStr)> fontFamilyName As String, fontCollection As IDWriteFontCollection, fontWeight As DWRITE_FONT_WEIGHT, fontStyle As DWRITE_FONT_STYLE, fontStretch As DWRITE_FONT_STRETCH, fontSize As Single,
<MarshalAs(UnmanagedType.LPWStr)> localeName As String, <Out> ByRef textFormat As IDWriteTextFormat) As HRESULT
<PreserveSig>
Overloads Function CreateTypography(<Out> ByRef typography As IDWriteTypography) As HRESULT
<PreserveSig>
Overloads Function GetGdiInterop(<Out> ByRef gdiInterop As IDWriteGdiInterop) As HRESULT
<PreserveSig>
Overloads Function CreateTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, maxWidth As Single, maxHeight As Single, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateGdiCompatibleTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, layoutWidth As Single, layoutHeight As Single, pixelsPerDip As Single, transform As DWRITE_MATRIX, useGdiNatural As Boolean, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateEllipsisTrimmingSign(textFormat As IDWriteTextFormat, <Out> ByRef trimmingSign As IDWriteInlineObject) As HRESULT
<PreserveSig>
Overloads Function CreateTextAnalyzer(<Out> ByRef textAnalyzer As IDWriteTextAnalyzer) As HRESULT
<PreserveSig>
Overloads Function CreateNumberSubstitution(substitutionMethod As DWRITE_NUMBER_SUBSTITUTION_METHOD, localeName As String, ignoreUserOverride As Boolean, <Out> ByRef numberSubstitution As IDWriteNumberSubstitution) As HRESULT
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis(ByRef glyphRun As DWRITE_GLYPH_RUN, pixelsPerDip As Single, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
#End Region
<PreserveSig>
Overloads Function GetEudcFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams1(gamma As Single, enhancedContrast As Single, enhancedContrastGrayscale As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams1) As HRESULT
#End Region
<PreserveSig>
Function GetSystemFontFallback(<Out> ByRef fontFallback As IDWriteFontFallback) As HRESULT
<PreserveSig>
Function CreateFontFallbackBuilder(<Out> ByRef fontFallbackBuilder As IDWriteFontFallbackBuilder) As HRESULT
<PreserveSig>
Function TranslateColorGlyphRun(baselineOriginX As D2D1_POINT_2F, baselineOriginY As D2D1_POINT_2F, ByRef glyphRun As DWRITE_GLYPH_RUN, glyphRunDescription As IntPtr, measuringMode As DWRITE_MEASURING_MODE, worldToDeviceTransform As IntPtr, colorPaletteIndex As UInteger, <Out> ByRef colorLayers As IDWriteColorGlyphRunEnumerator) As HRESULT
<PreserveSig>
Function CreateCustomRenderingParams2(gamma As Single, enhancedContrast As Single, grayscaleEnhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams2) As HRESULT
<PreserveSig>
Function CreateGlyphRunAnalysis2(ByRef glyphRun As DWRITE_GLYPH_RUN, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, antialiasMode As DWRITE_TEXT_ANTIALIAS_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
End Interface
<ComImport>
<Guid("9A1B41C3-D3BB-466A-87FC-FE67556A3B65")>
<InterfaceType(ComInterfaceType.InterfaceIsIUnknown)>
Public Interface IDWriteFactory3
Inherits IDWriteFactory2
#Region "IDWriteFactory2"
#Region "IDWriteFactory1"
#Region "IDWriteFactory"
Overloads Function GetSystemFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontCollection(collectionLoader As IDWriteFontCollectionLoader, collectionKey As IntPtr, collectionKeySize As Integer, <Out> ByRef fontCollection As IDWriteFontCollection) As HRESULT
<PreserveSig>
Overloads Function RegisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
<PreserveSig>
Overloads Function UnregisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
'new HRESULT CreateFontFileReference(string filePath, System.Runtime.InteropServices.ComTypes.FILETIME lastWriteTime, out IDWriteFontFile fontFile);
<PreserveSig>
Overloads Function CreateFontFileReference(
<MarshalAs(UnmanagedType.LPWStr)> filePath As String, lastWriteTime As IntPtr, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontFileReference(fontFileReferenceKey As IntPtr, fontFileReferenceKeySize As UInteger, fontFileLoader As IDWriteFontFileLoader, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateFontFace(fontFaceType As DWRITE_FONT_FACE_TYPE, numberOfFiles As Integer,
<MarshalAs(UnmanagedType.LPArray, SizeParamIndex:=1)> fontFiles As IDWriteFontFile(), faceIndex As Integer, fontFaceSimulationFlags As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFace As IDWriteFontFace) As HRESULT
<PreserveSig>
Overloads Function CreateRenderingParams(<Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateMonitorRenderingParams(monitor As IntPtr, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams(gamma As Single, enhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function RegisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function UnregisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function CreateTextFormat(
<MarshalAs(UnmanagedType.LPWStr)> fontFamilyName As String, fontCollection As IDWriteFontCollection, fontWeight As DWRITE_FONT_WEIGHT, fontStyle As DWRITE_FONT_STYLE, fontStretch As DWRITE_FONT_STRETCH, fontSize As Single,
<MarshalAs(UnmanagedType.LPWStr)> localeName As String, <Out> ByRef textFormat As IDWriteTextFormat) As HRESULT
<PreserveSig>
Overloads Function CreateTypography(<Out> ByRef typography As IDWriteTypography) As HRESULT
<PreserveSig>
Overloads Function GetGdiInterop(<Out> ByRef gdiInterop As IDWriteGdiInterop) As HRESULT
<PreserveSig>
Overloads Function CreateTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, maxWidth As Single, maxHeight As Single, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateGdiCompatibleTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, layoutWidth As Single, layoutHeight As Single, pixelsPerDip As Single, transform As DWRITE_MATRIX, useGdiNatural As Boolean, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateEllipsisTrimmingSign(textFormat As IDWriteTextFormat, <Out> ByRef trimmingSign As IDWriteInlineObject) As HRESULT
<PreserveSig>
Overloads Function CreateTextAnalyzer(<Out> ByRef textAnalyzer As IDWriteTextAnalyzer) As HRESULT
<PreserveSig>
Overloads Function CreateNumberSubstitution(substitutionMethod As DWRITE_NUMBER_SUBSTITUTION_METHOD, localeName As String, ignoreUserOverride As Boolean, <Out> ByRef numberSubstitution As IDWriteNumberSubstitution) As HRESULT
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis(ByRef glyphRun As DWRITE_GLYPH_RUN, pixelsPerDip As Single, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
#End Region
<PreserveSig>
Overloads Function GetEudcFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams1(gamma As Single, enhancedContrast As Single, enhancedContrastGrayscale As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams1) As HRESULT
#End Region
<PreserveSig>
Overloads Function GetSystemFontFallback(<Out> ByRef fontFallback As IDWriteFontFallback) As HRESULT
<PreserveSig>
Overloads Function CreateFontFallbackBuilder(<Out> ByRef fontFallbackBuilder As IDWriteFontFallbackBuilder) As HRESULT
<PreserveSig>
Overloads Function TranslateColorGlyphRun(baselineOriginX As D2D1_POINT_2F, baselineOriginY As D2D1_POINT_2F, ByRef glyphRun As DWRITE_GLYPH_RUN, glyphRunDescription As IntPtr, measuringMode As DWRITE_MEASURING_MODE, worldToDeviceTransform As IntPtr, colorPaletteIndex As UInteger, <Out> ByRef colorLayers As IDWriteColorGlyphRunEnumerator) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams2(gamma As Single, enhancedContrast As Single, grayscaleEnhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams2) As HRESULT
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis2(ByRef glyphRun As DWRITE_GLYPH_RUN, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, antialiasMode As DWRITE_TEXT_ANTIALIAS_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
#End Region
<PreserveSig>
Function CreateGlyphRunAnalysis3(ByRef glyphRun As DWRITE_GLYPH_RUN, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE1, measuringMode As DWRITE_MEASURING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, antialiasMode As DWRITE_TEXT_ANTIALIAS_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
<PreserveSig>
Function CreateCustomRenderingParams3(gamma As Single, enhancedContrast As Single, grayscaleEnhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE1, gridFitMode As DWRITE_GRID_FIT_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams3) As HRESULT
'HRESULT CreateFontFaceReference3(string filePath, System.Runtime.InteropServices.ComTypes.FILETIME lastWriteTime, uint faceIndex, DWRITE_FONT_SIMULATIONS fontSimulations, out IDWriteFontFaceReference fontFaceReference);
<PreserveSig>
Function CreateFontFaceReference3(filePath As String, lastWriteTime As IntPtr, faceIndex As UInteger, fontSimulations As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFaceReference As IDWriteFontFaceReference) As HRESULT
<PreserveSig>
Function CreateFontFaceReference3(fontFile As IDWriteFontFile, faceIndex As UInteger, fontSimulations As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFaceReference As IDWriteFontFaceReference) As HRESULT
<PreserveSig>
Function GetSystemFontSet3(<Out> ByRef fontSet As IDWriteFontSet) As HRESULT
<PreserveSig>
Function CreateFontSetBuilder3(<Out> ByRef fontSetBuilder As IDWriteFontSetBuilder) As HRESULT
<PreserveSig>
Function CreateFontCollectionFromFontSet3(fontSet As IDWriteFontSet, <Out> ByRef fontCollection As IDWriteFontCollection1) As HRESULT
<PreserveSig>
Function GetSystemFontCollection3(includeDownloadableFonts As Boolean, <Out> ByRef fontCollection As IDWriteFontCollection1, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Function GetFontDownloadQueue(<Out> ByRef fontDownloadQueue As IDWriteFontDownloadQueue) As HRESULT
End Interface
<ComImport>
<Guid("4B0B5BD3-0797-4549-8AC5-FE915CC53856")>
<InterfaceType(ComInterfaceType.InterfaceIsIUnknown)>
Public Interface IDWriteFactory4
Inherits IDWriteFactory3
#Region "IDWriteFactory3"
#Region "IDWriteFactory2"
#Region "IDWriteFactory1"
#Region "IDWriteFactory"
Overloads Function GetSystemFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontCollection(collectionLoader As IDWriteFontCollectionLoader, collectionKey As IntPtr, collectionKeySize As Integer, <Out> ByRef fontCollection As IDWriteFontCollection) As HRESULT
<PreserveSig>
Overloads Function RegisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
<PreserveSig>
Overloads Function UnregisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
'new HRESULT CreateFontFileReference(string filePath, System.Runtime.InteropServices.ComTypes.FILETIME lastWriteTime, out IDWriteFontFile fontFile);
<PreserveSig>
Overloads Function CreateFontFileReference(
<MarshalAs(UnmanagedType.LPWStr)> filePath As String, lastWriteTime As IntPtr, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontFileReference(fontFileReferenceKey As IntPtr, fontFileReferenceKeySize As UInteger, fontFileLoader As IDWriteFontFileLoader, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateFontFace(fontFaceType As DWRITE_FONT_FACE_TYPE, numberOfFiles As Integer,
<MarshalAs(UnmanagedType.LPArray, SizeParamIndex:=1)> fontFiles As IDWriteFontFile(), faceIndex As Integer, fontFaceSimulationFlags As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFace As IDWriteFontFace) As HRESULT
<PreserveSig>
Overloads Function CreateRenderingParams(<Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateMonitorRenderingParams(monitor As IntPtr, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams(gamma As Single, enhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function RegisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function UnregisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function CreateTextFormat(
<MarshalAs(UnmanagedType.LPWStr)> fontFamilyName As String, fontCollection As IDWriteFontCollection, fontWeight As DWRITE_FONT_WEIGHT, fontStyle As DWRITE_FONT_STYLE, fontStretch As DWRITE_FONT_STRETCH, fontSize As Single,
<MarshalAs(UnmanagedType.LPWStr)> localeName As String, <Out> ByRef textFormat As IDWriteTextFormat) As HRESULT
<PreserveSig>
Overloads Function CreateTypography(<Out> ByRef typography As IDWriteTypography) As HRESULT
<PreserveSig>
Overloads Function GetGdiInterop(<Out> ByRef gdiInterop As IDWriteGdiInterop) As HRESULT
<PreserveSig>
Overloads Function CreateTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, maxWidth As Single, maxHeight As Single, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateGdiCompatibleTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, layoutWidth As Single, layoutHeight As Single, pixelsPerDip As Single, transform As DWRITE_MATRIX, useGdiNatural As Boolean, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateEllipsisTrimmingSign(textFormat As IDWriteTextFormat, <Out> ByRef trimmingSign As IDWriteInlineObject) As HRESULT
<PreserveSig>
Overloads Function CreateTextAnalyzer(<Out> ByRef textAnalyzer As IDWriteTextAnalyzer) As HRESULT
<PreserveSig>
Overloads Function CreateNumberSubstitution(substitutionMethod As DWRITE_NUMBER_SUBSTITUTION_METHOD, localeName As String, ignoreUserOverride As Boolean, <Out> ByRef numberSubstitution As IDWriteNumberSubstitution) As HRESULT
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis(ByRef glyphRun As DWRITE_GLYPH_RUN, pixelsPerDip As Single, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
#End Region
<PreserveSig>
Overloads Function GetEudcFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams1(gamma As Single, enhancedContrast As Single, enhancedContrastGrayscale As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams1) As HRESULT
#End Region
<PreserveSig>
Overloads Function GetSystemFontFallback(<Out> ByRef fontFallback As IDWriteFontFallback) As HRESULT
<PreserveSig>
Overloads Function CreateFontFallbackBuilder(<Out> ByRef fontFallbackBuilder As IDWriteFontFallbackBuilder) As HRESULT
<PreserveSig>
Overloads Function TranslateColorGlyphRun(baselineOriginX As D2D1_POINT_2F, baselineOriginY As D2D1_POINT_2F, ByRef glyphRun As DWRITE_GLYPH_RUN, glyphRunDescription As IntPtr, measuringMode As DWRITE_MEASURING_MODE, worldToDeviceTransform As IntPtr, colorPaletteIndex As UInteger, <Out> ByRef colorLayers As IDWriteColorGlyphRunEnumerator) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams2(gamma As Single, enhancedContrast As Single, grayscaleEnhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams2) As HRESULT
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis2(ByRef glyphRun As DWRITE_GLYPH_RUN, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, antialiasMode As DWRITE_TEXT_ANTIALIAS_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
#End Region
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis3(ByRef glyphRun As DWRITE_GLYPH_RUN, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE1, measuringMode As DWRITE_MEASURING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, antialiasMode As DWRITE_TEXT_ANTIALIAS_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams3(gamma As Single, enhancedContrast As Single, grayscaleEnhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE1, gridFitMode As DWRITE_GRID_FIT_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams3) As HRESULT
'new HRESULT CreateFontFaceReference3(string filePath, System.Runtime.InteropServices.ComTypes.FILETIME lastWriteTime, uint faceIndex, DWRITE_FONT_SIMULATIONS fontSimulations, out IDWriteFontFaceReference fontFaceReference);
<PreserveSig>
Overloads Function CreateFontFaceReference3(filePath As String, lastWriteTime As IntPtr, faceIndex As UInteger, fontSimulations As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFaceReference As IDWriteFontFaceReference) As HRESULT
<PreserveSig>
Overloads Function CreateFontFaceReference3(fontFile As IDWriteFontFile, faceIndex As UInteger, fontSimulations As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFaceReference As IDWriteFontFaceReference) As HRESULT
Overloads Function GetSystemFontSet3(<Out> ByRef fontSet As IDWriteFontSet) As HRESULT
<PreserveSig>
Overloads Function CreateFontSetBuilder3(<Out> ByRef fontSetBuilder As IDWriteFontSetBuilder) As HRESULT
<PreserveSig>
Overloads Function CreateFontCollectionFromFontSet3(fontSet As IDWriteFontSet, <Out> ByRef fontCollection As IDWriteFontCollection1) As HRESULT
<PreserveSig>
Overloads Function GetSystemFontCollection3(includeDownloadableFonts As Boolean, <Out> ByRef fontCollection As IDWriteFontCollection1, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function GetFontDownloadQueue(<Out> ByRef fontDownloadQueue As IDWriteFontDownloadQueue) As HRESULT
#End Region
<PreserveSig>
Function TranslateColorGlyphRun4(baselineOrigin As D2D1_POINT_2F, ByRef glyphRun As DWRITE_GLYPH_RUN, glyphRunDescription As IntPtr, desiredGlyphImageFormats As DWRITE_GLYPH_IMAGE_FORMATS, measuringMode As DWRITE_MEASURING_MODE, worldAndDpiTransform As IntPtr, colorPaletteIndex As UInteger, <Out> ByRef colorLayers As IDWriteColorGlyphRunEnumerator1) As HRESULT
<PreserveSig>
Function ComputeGlyphOrigins(ByRef glyphRun As DWRITE_GLYPH_RUN, measuringMode As DWRITE_MEASURING_MODE, baselineOrigin As D2D1_POINT_2F, worldAndDpiTransform As DWRITE_MATRIX, <Out> ByRef glyphOrigins As D2D1_POINT_2F) As HRESULT
<PreserveSig>
Function ComputeGlyphOrigins(ByRef glyphRun As DWRITE_GLYPH_RUN, baselineOrigin As D2D1_POINT_2F, <Out> ByRef glyphOrigins As D2D1_POINT_2F) As HRESULT
End Interface
<ComImport>
<Guid("958DB99A-BE2A-4F09-AF7D-65189803D1D3")>
<InterfaceType(ComInterfaceType.InterfaceIsIUnknown)>
Public Interface IDWriteFactory5
Inherits IDWriteFactory4
#Region "IDWriteFactory4"
#Region "IDWriteFactory3"
#Region "IDWriteFactory2"
#Region "IDWriteFactory1"
#Region "IDWriteFactory"
Overloads Function GetSystemFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontCollection(collectionLoader As IDWriteFontCollectionLoader, collectionKey As IntPtr, collectionKeySize As Integer, <Out> ByRef fontCollection As IDWriteFontCollection) As HRESULT
<PreserveSig>
Overloads Function RegisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
Overloads Function UnregisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
'new HRESULT CreateFontFileReference(string filePath, System.Runtime.InteropServices.ComTypes.FILETIME lastWriteTime, out IDWriteFontFile fontFile);
<PreserveSig>
Overloads Function CreateFontFileReference(
<MarshalAs(UnmanagedType.LPWStr)> filePath As String, lastWriteTime As IntPtr, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontFileReference(fontFileReferenceKey As IntPtr, fontFileReferenceKeySize As UInteger, fontFileLoader As IDWriteFontFileLoader, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateFontFace(fontFaceType As DWRITE_FONT_FACE_TYPE, numberOfFiles As Integer,
<MarshalAs(UnmanagedType.LPArray, SizeParamIndex:=1)> fontFiles As IDWriteFontFile(), faceIndex As Integer, fontFaceSimulationFlags As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFace As IDWriteFontFace) As HRESULT
<PreserveSig>
Overloads Function CreateRenderingParams(<Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateMonitorRenderingParams(monitor As IntPtr, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams(gamma As Single, enhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function RegisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
Overloads Function UnregisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function CreateTextFormat(
<MarshalAs(UnmanagedType.LPWStr)> fontFamilyName As String, fontCollection As IDWriteFontCollection, fontWeight As DWRITE_FONT_WEIGHT, fontStyle As DWRITE_FONT_STYLE, fontStretch As DWRITE_FONT_STRETCH, fontSize As Single,
<MarshalAs(UnmanagedType.LPWStr)> localeName As String, <Out> ByRef textFormat As IDWriteTextFormat) As HRESULT
<PreserveSig>
Overloads Function CreateTypography(<Out> ByRef typography As IDWriteTypography) As HRESULT
<PreserveSig>
Overloads Function GetGdiInterop(<Out> ByRef gdiInterop As IDWriteGdiInterop) As HRESULT
<PreserveSig>
Overloads Function CreateTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, maxWidth As Single, maxHeight As Single, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateGdiCompatibleTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, layoutWidth As Single, layoutHeight As Single, pixelsPerDip As Single, transform As DWRITE_MATRIX, useGdiNatural As Boolean, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateEllipsisTrimmingSign(textFormat As IDWriteTextFormat, <Out> ByRef trimmingSign As IDWriteInlineObject) As HRESULT
<PreserveSig>
Overloads Function CreateTextAnalyzer(<Out> ByRef textAnalyzer As IDWriteTextAnalyzer) As HRESULT
<PreserveSig>
Overloads Function CreateNumberSubstitution(substitutionMethod As DWRITE_NUMBER_SUBSTITUTION_METHOD, localeName As String, ignoreUserOverride As Boolean, <Out> ByRef numberSubstitution As IDWriteNumberSubstitution) As HRESULT
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis(ByRef glyphRun As DWRITE_GLYPH_RUN, pixelsPerDip As Single, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
#End Region
Overloads Function GetEudcFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams1(gamma As Single, enhancedContrast As Single, enhancedContrastGrayscale As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams1) As HRESULT
#End Region
<PreserveSig>
Overloads Function GetSystemFontFallback(<Out> ByRef fontFallback As IDWriteFontFallback) As HRESULT
<PreserveSig>
Overloads Function CreateFontFallbackBuilder(<Out> ByRef fontFallbackBuilder As IDWriteFontFallbackBuilder) As HRESULT
<PreserveSig>
Overloads Function TranslateColorGlyphRun(baselineOriginX As D2D1_POINT_2F, baselineOriginY As D2D1_POINT_2F, ByRef glyphRun As DWRITE_GLYPH_RUN, glyphRunDescription As IntPtr, measuringMode As DWRITE_MEASURING_MODE, worldToDeviceTransform As IntPtr, colorPaletteIndex As UInteger, <Out> ByRef colorLayers As IDWriteColorGlyphRunEnumerator) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams2(gamma As Single, enhancedContrast As Single, grayscaleEnhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams2) As HRESULT
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis2(ByRef glyphRun As DWRITE_GLYPH_RUN, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, antialiasMode As DWRITE_TEXT_ANTIALIAS_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
#End Region
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis3(ByRef glyphRun As DWRITE_GLYPH_RUN, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE1, measuringMode As DWRITE_MEASURING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, antialiasMode As DWRITE_TEXT_ANTIALIAS_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams3(gamma As Single, enhancedContrast As Single, grayscaleEnhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE1, gridFitMode As DWRITE_GRID_FIT_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams3) As HRESULT
'new HRESULT CreateFontFaceReference3(string filePath, System.Runtime.InteropServices.ComTypes.FILETIME lastWriteTime, uint faceIndex, DWRITE_FONT_SIMULATIONS fontSimulations, out IDWriteFontFaceReference fontFaceReference);
<PreserveSig>
Overloads Function CreateFontFaceReference3(filePath As String, lastWriteTime As IntPtr, faceIndex As UInteger, fontSimulations As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFaceReference As IDWriteFontFaceReference) As HRESULT
<PreserveSig>
Overloads Function CreateFontFaceReference3(fontFile As IDWriteFontFile, faceIndex As UInteger, fontSimulations As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFaceReference As IDWriteFontFaceReference) As HRESULT
<PreserveSig>
Overloads Function GetSystemFontSet3(<Out> ByRef fontSet As IDWriteFontSet) As HRESULT
<PreserveSig>
Overloads Function CreateFontSetBuilder3(<Out> ByRef fontSetBuilder As IDWriteFontSetBuilder) As HRESULT
<PreserveSig>
Overloads Function CreateFontCollectionFromFontSet3(fontSet As IDWriteFontSet, <Out> ByRef fontCollection As IDWriteFontCollection1) As HRESULT
<PreserveSig>
Overloads Function GetSystemFontCollection3(includeDownloadableFonts As Boolean, <Out> ByRef fontCollection As IDWriteFontCollection1, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function GetFontDownloadQueue(<Out> ByRef fontDownloadQueue As IDWriteFontDownloadQueue) As HRESULT
#End Region
Overloads Function TranslateColorGlyphRun4(baselineOrigin As D2D1_POINT_2F, ByRef glyphRun As DWRITE_GLYPH_RUN, glyphRunDescription As IntPtr, desiredGlyphImageFormats As DWRITE_GLYPH_IMAGE_FORMATS, measuringMode As DWRITE_MEASURING_MODE, worldAndDpiTransform As IntPtr, colorPaletteIndex As UInteger, <Out> ByRef colorLayers As IDWriteColorGlyphRunEnumerator1) As HRESULT
Overloads Function ComputeGlyphOrigins(ByRef glyphRun As DWRITE_GLYPH_RUN, measuringMode As DWRITE_MEASURING_MODE, baselineOrigin As D2D1_POINT_2F, worldAndDpiTransform As DWRITE_MATRIX, <Out> ByRef glyphOrigins As D2D1_POINT_2F) As HRESULT
Overloads Function ComputeGlyphOrigins(ByRef glyphRun As DWRITE_GLYPH_RUN, baselineOrigin As D2D1_POINT_2F, <Out> ByRef glyphOrigins As D2D1_POINT_2F) As HRESULT
#End Region
<PreserveSig>
Function CreateFontSetBuilder5(<Out> ByRef fontSetBuilder As IDWriteFontSetBuilder1) As HRESULT
<PreserveSig>
Function CreateInMemoryFontFileLoader(<Out> ByRef newLoader As IDWriteInMemoryFontFileLoader) As HRESULT
<PreserveSig>
Function CreateHttpFontFileLoader(referrerUrl As String, extraHeaders As String, <Out> ByRef newLoader As IDWriteRemoteFontFileLoader) As HRESULT
Function AnalyzeContainerType(fileData As IntPtr, fileDataSize As UInteger) As DWRITE_CONTAINER_TYPE
<PreserveSig>
Function UnpackFontFile(containerType As DWRITE_CONTAINER_TYPE, fileData As IntPtr, fileDataSize As UInteger, <Out> ByRef unpackedFontStream As IDWriteFontFileStream) As HRESULT
End Interface
<ComImport>
<Guid("F3744D80-21F7-42EB-B35D-995BC72FC223")>
<InterfaceType(ComInterfaceType.InterfaceIsIUnknown)>
Public Interface IDWriteFactory6
Inherits IDWriteFactory5
#Region "IDWriteFactory5"
#Region "IDWriteFactory4"
#Region "IDWriteFactory3"
#Region "IDWriteFactory2"
#Region "IDWriteFactory1"
#Region "IDWriteFactory"
Overloads Function GetSystemFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontCollection(collectionLoader As IDWriteFontCollectionLoader, collectionKey As IntPtr, collectionKeySize As Integer, <Out> ByRef fontCollection As IDWriteFontCollection) As HRESULT
<PreserveSig>
Overloads Function RegisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
Overloads Function UnregisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
'new HRESULT CreateFontFileReference(string filePath, System.Runtime.InteropServices.ComTypes.FILETIME lastWriteTime, out IDWriteFontFile fontFile);
<PreserveSig>
Overloads Function CreateFontFileReference(
<MarshalAs(UnmanagedType.LPWStr)> filePath As String, lastWriteTime As IntPtr, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontFileReference(fontFileReferenceKey As IntPtr, fontFileReferenceKeySize As UInteger, fontFileLoader As IDWriteFontFileLoader, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateFontFace(fontFaceType As DWRITE_FONT_FACE_TYPE, numberOfFiles As Integer,
<MarshalAs(UnmanagedType.LPArray, SizeParamIndex:=1)> fontFiles As IDWriteFontFile(), faceIndex As Integer, fontFaceSimulationFlags As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFace As IDWriteFontFace) As HRESULT
<PreserveSig>
Overloads Function CreateRenderingParams(<Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateMonitorRenderingParams(monitor As IntPtr, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams(gamma As Single, enhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function RegisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
Overloads Function UnregisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function CreateTextFormat(
<MarshalAs(UnmanagedType.LPWStr)> fontFamilyName As String, fontCollection As IDWriteFontCollection, fontWeight As DWRITE_FONT_WEIGHT, fontStyle As DWRITE_FONT_STYLE, fontStretch As DWRITE_FONT_STRETCH, fontSize As Single,
<MarshalAs(UnmanagedType.LPWStr)> localeName As String, <Out> ByRef textFormat As IDWriteTextFormat) As HRESULT
<PreserveSig>
Overloads Function CreateTypography(<Out> ByRef typography As IDWriteTypography) As HRESULT
<PreserveSig>
Overloads Function GetGdiInterop(<Out> ByRef gdiInterop As IDWriteGdiInterop) As HRESULT
<PreserveSig>
Overloads Function CreateTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, maxWidth As Single, maxHeight As Single, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateGdiCompatibleTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, layoutWidth As Single, layoutHeight As Single, pixelsPerDip As Single, transform As DWRITE_MATRIX, useGdiNatural As Boolean, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateEllipsisTrimmingSign(textFormat As IDWriteTextFormat, <Out> ByRef trimmingSign As IDWriteInlineObject) As HRESULT
<PreserveSig>
Overloads Function CreateTextAnalyzer(<Out> ByRef textAnalyzer As IDWriteTextAnalyzer) As HRESULT
<PreserveSig>
Overloads Function CreateNumberSubstitution(substitutionMethod As DWRITE_NUMBER_SUBSTITUTION_METHOD, localeName As String, ignoreUserOverride As Boolean, <Out> ByRef numberSubstitution As IDWriteNumberSubstitution) As HRESULT
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis(ByRef glyphRun As DWRITE_GLYPH_RUN, pixelsPerDip As Single, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
#End Region
Overloads Function GetEudcFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams1(gamma As Single, enhancedContrast As Single, enhancedContrastGrayscale As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams1) As HRESULT
#End Region
<PreserveSig>
Overloads Function GetSystemFontFallback(<Out> ByRef fontFallback As IDWriteFontFallback) As HRESULT
<PreserveSig>
Overloads Function CreateFontFallbackBuilder(<Out> ByRef fontFallbackBuilder As IDWriteFontFallbackBuilder) As HRESULT
<PreserveSig>
Overloads Function TranslateColorGlyphRun(baselineOriginX As D2D1_POINT_2F, baselineOriginY As D2D1_POINT_2F, ByRef glyphRun As DWRITE_GLYPH_RUN, glyphRunDescription As IntPtr, measuringMode As DWRITE_MEASURING_MODE, worldToDeviceTransform As IntPtr, colorPaletteIndex As UInteger, <Out> ByRef colorLayers As IDWriteColorGlyphRunEnumerator) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams2(gamma As Single, enhancedContrast As Single, grayscaleEnhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams2) As HRESULT
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis2(ByRef glyphRun As DWRITE_GLYPH_RUN, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, antialiasMode As DWRITE_TEXT_ANTIALIAS_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
#End Region
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis3(ByRef glyphRun As DWRITE_GLYPH_RUN, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE1, measuringMode As DWRITE_MEASURING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, antialiasMode As DWRITE_TEXT_ANTIALIAS_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams3(gamma As Single, enhancedContrast As Single, grayscaleEnhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE1, gridFitMode As DWRITE_GRID_FIT_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams3) As HRESULT
'new HRESULT CreateFontFaceReference3(string filePath, System.Runtime.InteropServices.ComTypes.FILETIME lastWriteTime, uint faceIndex, DWRITE_FONT_SIMULATIONS fontSimulations, out IDWriteFontFaceReference fontFaceReference);
<PreserveSig>
Overloads Function CreateFontFaceReference3(filePath As String, lastWriteTime As IntPtr, faceIndex As UInteger, fontSimulations As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFaceReference As IDWriteFontFaceReference) As HRESULT
<PreserveSig>
Overloads Function CreateFontFaceReference3(fontFile As IDWriteFontFile, faceIndex As UInteger, fontSimulations As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFaceReference As IDWriteFontFaceReference) As HRESULT
<PreserveSig>
Overloads Function GetSystemFontSet3(<Out> ByRef fontSet As IDWriteFontSet) As HRESULT
<PreserveSig>
Overloads Function CreateFontSetBuilder3(<Out> ByRef fontSetBuilder As IDWriteFontSetBuilder) As HRESULT
<PreserveSig>
Overloads Function CreateFontCollectionFromFontSet3(fontSet As IDWriteFontSet, <Out> ByRef fontCollection As IDWriteFontCollection1) As HRESULT
<PreserveSig>
Overloads Function GetSystemFontCollection3(includeDownloadableFonts As Boolean, <Out> ByRef fontCollection As IDWriteFontCollection1, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function GetFontDownloadQueue(<Out> ByRef fontDownloadQueue As IDWriteFontDownloadQueue) As HRESULT
#End Region
<PreserveSig>
Overloads Function TranslateColorGlyphRun4(baselineOrigin As D2D1_POINT_2F, ByRef glyphRun As DWRITE_GLYPH_RUN, glyphRunDescription As IntPtr, desiredGlyphImageFormats As DWRITE_GLYPH_IMAGE_FORMATS, measuringMode As DWRITE_MEASURING_MODE, worldAndDpiTransform As IntPtr, colorPaletteIndex As UInteger, <Out> ByRef colorLayers As IDWriteColorGlyphRunEnumerator1) As HRESULT
<PreserveSig>
Overloads Function ComputeGlyphOrigins(ByRef glyphRun As DWRITE_GLYPH_RUN, measuringMode As DWRITE_MEASURING_MODE, baselineOrigin As D2D1_POINT_2F, worldAndDpiTransform As DWRITE_MATRIX, <Out> ByRef glyphOrigins As D2D1_POINT_2F) As HRESULT
<PreserveSig>
Overloads Function ComputeGlyphOrigins(ByRef glyphRun As DWRITE_GLYPH_RUN, baselineOrigin As D2D1_POINT_2F, <Out> ByRef glyphOrigins As D2D1_POINT_2F) As HRESULT
#End Region
<PreserveSig>
Overloads Function CreateFontSetBuilder5(<Out> ByRef fontSetBuilder As IDWriteFontSetBuilder1) As HRESULT
<PreserveSig>
Overloads Function CreateInMemoryFontFileLoader(<Out> ByRef newLoader As IDWriteInMemoryFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function CreateHttpFontFileLoader(referrerUrl As String, extraHeaders As String, <Out> ByRef newLoader As IDWriteRemoteFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function AnalyzeContainerType(fileData As IntPtr, fileDataSize As UInteger) As DWRITE_CONTAINER_TYPE
<PreserveSig>
Overloads Function UnpackFontFile(containerType As DWRITE_CONTAINER_TYPE, fileData As IntPtr, fileDataSize As UInteger, <Out> ByRef unpackedFontStream As IDWriteFontFileStream) As HRESULT
#End Region
<PreserveSig>
Function CreateFontFaceReference6(fontFile As IDWriteFontFile, faceIndex As UInteger, fontSimulations As DWRITE_FONT_SIMULATIONS, fontAxisValues As DWRITE_FONT_AXIS_VALUE, fontAxisValueCount As UInteger, <Out> ByRef fontFaceReference As IDWriteFontFaceReference1) As HRESULT
<PreserveSig>
Function CreateFontResource(fontFile As IDWriteFontFile, faceIndex As UInteger, <Out> ByRef fontResource As IDWriteFontResource) As HRESULT
<PreserveSig>
Function GetSystemFontSet6(includeDownloadableFonts As Boolean, <Out> ByRef fontSet As IDWriteFontSet1) As HRESULT
<PreserveSig>
Function GetSystemFontCollection6(includeDownloadableFonts As Boolean, fontFamilyModel As DWRITE_FONT_FAMILY_MODEL, <Out> ByRef fontCollection As IDWriteFontCollection2) As HRESULT
<PreserveSig>
Function CreateFontCollectionFromFontSet6(fontSet As IDWriteFontSet, fontFamilyModel As DWRITE_FONT_FAMILY_MODEL, <Out> ByRef fontCollection As IDWriteFontCollection2) As HRESULT
<PreserveSig>
Function CreateFontSetBuilder6(<Out> ByRef fontSetBuilder As IDWriteFontSetBuilder2) As HRESULT
<PreserveSig>
Function CreateTextFormat6(fontFamilyName As String, fontCollection As IDWriteFontCollection, fontAxisValues As DWRITE_FONT_AXIS_VALUE, fontAxisValueCount As UInteger, fontSize As Single, localeName As String, <Out> ByRef textFormat As IDWriteTextFormat3) As HRESULT
End Interface
<ComImport>
<Guid("35D0E0B3-9076-4D2E-A016-A91B568A06B4")>
<InterfaceType(ComInterfaceType.InterfaceIsIUnknown)>
Public Interface IDWriteFactory7
Inherits IDWriteFactory6
#Region "IDWriteFactory6"
#Region "IDWriteFactory5"
#Region "IDWriteFactory4"
#Region "IDWriteFactory3"
#Region "IDWriteFactory2"
#Region "IDWriteFactory1"
#Region "IDWriteFactory"
Overloads Function GetSystemFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontCollection(collectionLoader As IDWriteFontCollectionLoader, collectionKey As IntPtr, collectionKeySize As Integer, <Out> ByRef fontCollection As IDWriteFontCollection) As HRESULT
<PreserveSig>
Overloads Function RegisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
Overloads Function UnregisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
'new HRESULT CreateFontFileReference(string filePath, System.Runtime.InteropServices.ComTypes.FILETIME lastWriteTime, out IDWriteFontFile fontFile);
<PreserveSig>
Overloads Function CreateFontFileReference(
<MarshalAs(UnmanagedType.LPWStr)> filePath As String, lastWriteTime As IntPtr, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontFileReference(fontFileReferenceKey As IntPtr, fontFileReferenceKeySize As UInteger, fontFileLoader As IDWriteFontFileLoader, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateFontFace(fontFaceType As DWRITE_FONT_FACE_TYPE, numberOfFiles As Integer,
<MarshalAs(UnmanagedType.LPArray, SizeParamIndex:=1)> fontFiles As IDWriteFontFile(), faceIndex As Integer, fontFaceSimulationFlags As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFace As IDWriteFontFace) As HRESULT
<PreserveSig>
Overloads Function CreateRenderingParams(<Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateMonitorRenderingParams(monitor As IntPtr, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams(gamma As Single, enhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function RegisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
Overloads Function UnregisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function CreateTextFormat(
<MarshalAs(UnmanagedType.LPWStr)> fontFamilyName As String, fontCollection As IDWriteFontCollection, fontWeight As DWRITE_FONT_WEIGHT, fontStyle As DWRITE_FONT_STYLE, fontStretch As DWRITE_FONT_STRETCH, fontSize As Single,
<MarshalAs(UnmanagedType.LPWStr)> localeName As String, <Out> ByRef textFormat As IDWriteTextFormat) As HRESULT
<PreserveSig>
Overloads Function CreateTypography(<Out> ByRef typography As IDWriteTypography) As HRESULT
<PreserveSig>
Overloads Function GetGdiInterop(<Out> ByRef gdiInterop As IDWriteGdiInterop) As HRESULT
<PreserveSig>
Overloads Function CreateTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, maxWidth As Single, maxHeight As Single, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateGdiCompatibleTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, layoutWidth As Single, layoutHeight As Single, pixelsPerDip As Single, transform As DWRITE_MATRIX, useGdiNatural As Boolean, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateEllipsisTrimmingSign(textFormat As IDWriteTextFormat, <Out> ByRef trimmingSign As IDWriteInlineObject) As HRESULT
<PreserveSig>
Overloads Function CreateTextAnalyzer(<Out> ByRef textAnalyzer As IDWriteTextAnalyzer) As HRESULT
<PreserveSig>
Overloads Function CreateNumberSubstitution(substitutionMethod As DWRITE_NUMBER_SUBSTITUTION_METHOD, localeName As String, ignoreUserOverride As Boolean, <Out> ByRef numberSubstitution As IDWriteNumberSubstitution) As HRESULT
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis(ByRef glyphRun As DWRITE_GLYPH_RUN, pixelsPerDip As Single, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
#End Region
Overloads Function GetEudcFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams1(gamma As Single, enhancedContrast As Single, enhancedContrastGrayscale As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams1) As HRESULT
#End Region
<PreserveSig>
Overloads Function GetSystemFontFallback(<Out> ByRef fontFallback As IDWriteFontFallback) As HRESULT
<PreserveSig>
Overloads Function CreateFontFallbackBuilder(<Out> ByRef fontFallbackBuilder As IDWriteFontFallbackBuilder) As HRESULT
<PreserveSig>
Overloads Function TranslateColorGlyphRun(baselineOriginX As D2D1_POINT_2F, baselineOriginY As D2D1_POINT_2F, ByRef glyphRun As DWRITE_GLYPH_RUN, glyphRunDescription As IntPtr, measuringMode As DWRITE_MEASURING_MODE, worldToDeviceTransform As IntPtr, colorPaletteIndex As UInteger, <Out> ByRef colorLayers As IDWriteColorGlyphRunEnumerator) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams2(gamma As Single, enhancedContrast As Single, grayscaleEnhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams2) As HRESULT
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis2(ByRef glyphRun As DWRITE_GLYPH_RUN, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, antialiasMode As DWRITE_TEXT_ANTIALIAS_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
#End Region
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis3(ByRef glyphRun As DWRITE_GLYPH_RUN, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE1, measuringMode As DWRITE_MEASURING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, antialiasMode As DWRITE_TEXT_ANTIALIAS_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams3(gamma As Single, enhancedContrast As Single, grayscaleEnhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE1, gridFitMode As DWRITE_GRID_FIT_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams3) As HRESULT
'new HRESULT CreateFontFaceReference3(string filePath, System.Runtime.InteropServices.ComTypes.FILETIME lastWriteTime, uint faceIndex, DWRITE_FONT_SIMULATIONS fontSimulations, out IDWriteFontFaceReference fontFaceReference);
<PreserveSig>
Overloads Function CreateFontFaceReference3(filePath As String, lastWriteTime As IntPtr, faceIndex As UInteger, fontSimulations As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFaceReference As IDWriteFontFaceReference) As HRESULT
<PreserveSig>
Overloads Function CreateFontFaceReference3(fontFile As IDWriteFontFile, faceIndex As UInteger, fontSimulations As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFaceReference As IDWriteFontFaceReference) As HRESULT
<PreserveSig>
Overloads Function GetSystemFontSet3(<Out> ByRef fontSet As IDWriteFontSet) As HRESULT
<PreserveSig>
Overloads Function CreateFontSetBuilder3(<Out> ByRef fontSetBuilder As IDWriteFontSetBuilder) As HRESULT
<PreserveSig>
Overloads Function CreateFontCollectionFromFontSet3(fontSet As IDWriteFontSet, <Out> ByRef fontCollection As IDWriteFontCollection1) As HRESULT
<PreserveSig>
Overloads Function GetSystemFontCollection3(includeDownloadableFonts As Boolean, <Out> ByRef fontCollection As IDWriteFontCollection1, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function GetFontDownloadQueue(<Out> ByRef fontDownloadQueue As IDWriteFontDownloadQueue) As HRESULT
#End Region
<PreserveSig>
Overloads Function TranslateColorGlyphRun4(baselineOrigin As D2D1_POINT_2F, ByRef glyphRun As DWRITE_GLYPH_RUN, glyphRunDescription As IntPtr, desiredGlyphImageFormats As DWRITE_GLYPH_IMAGE_FORMATS, measuringMode As DWRITE_MEASURING_MODE, worldAndDpiTransform As IntPtr, colorPaletteIndex As UInteger, <Out> ByRef colorLayers As IDWriteColorGlyphRunEnumerator1) As HRESULT
<PreserveSig>
Overloads Function ComputeGlyphOrigins(ByRef glyphRun As DWRITE_GLYPH_RUN, measuringMode As DWRITE_MEASURING_MODE, baselineOrigin As D2D1_POINT_2F, worldAndDpiTransform As DWRITE_MATRIX, <Out> ByRef glyphOrigins As D2D1_POINT_2F) As HRESULT
<PreserveSig>
Overloads Function ComputeGlyphOrigins(ByRef glyphRun As DWRITE_GLYPH_RUN, baselineOrigin As D2D1_POINT_2F, <Out> ByRef glyphOrigins As D2D1_POINT_2F) As HRESULT
#End Region
<PreserveSig>
Overloads Function CreateFontSetBuilder5(<Out> ByRef fontSetBuilder As IDWriteFontSetBuilder1) As HRESULT
<PreserveSig>
Overloads Function CreateInMemoryFontFileLoader(<Out> ByRef newLoader As IDWriteInMemoryFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function CreateHttpFontFileLoader(referrerUrl As String, extraHeaders As String, <Out> ByRef newLoader As IDWriteRemoteFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function AnalyzeContainerType(fileData As IntPtr, fileDataSize As UInteger) As DWRITE_CONTAINER_TYPE
<PreserveSig>
Overloads Function UnpackFontFile(containerType As DWRITE_CONTAINER_TYPE, fileData As IntPtr, fileDataSize As UInteger, <Out> ByRef unpackedFontStream As IDWriteFontFileStream) As HRESULT
#End Region
<PreserveSig>
Overloads Function CreateFontFaceReference6(fontFile As IDWriteFontFile, faceIndex As UInteger, fontSimulations As DWRITE_FONT_SIMULATIONS, fontAxisValues As DWRITE_FONT_AXIS_VALUE, fontAxisValueCount As UInteger, <Out> ByRef fontFaceReference As IDWriteFontFaceReference1) As HRESULT
<PreserveSig>
Overloads Function CreateFontResource(fontFile As IDWriteFontFile, faceIndex As UInteger, <Out> ByRef fontResource As IDWriteFontResource) As HRESULT
<PreserveSig>
Overloads Function GetSystemFontSet6(includeDownloadableFonts As Boolean, <Out> ByRef fontSet As IDWriteFontSet1) As HRESULT
<PreserveSig>
Overloads Function GetSystemFontCollection6(includeDownloadableFonts As Boolean, fontFamilyModel As DWRITE_FONT_FAMILY_MODEL, <Out> ByRef fontCollection As IDWriteFontCollection2) As HRESULT
<PreserveSig>
Overloads Function CreateFontCollectionFromFontSet6(fontSet As IDWriteFontSet, fontFamilyModel As DWRITE_FONT_FAMILY_MODEL, <Out> ByRef fontCollection As IDWriteFontCollection2) As HRESULT
<PreserveSig>
Overloads Function CreateFontSetBuilder6(<Out> ByRef fontSetBuilder As IDWriteFontSetBuilder2) As HRESULT
<PreserveSig>
Overloads Function CreateTextFormat6(fontFamilyName As String, fontCollection As IDWriteFontCollection, fontAxisValues As DWRITE_FONT_AXIS_VALUE, fontAxisValueCount As UInteger, fontSize As Single, localeName As String, <Out> ByRef textFormat As IDWriteTextFormat3) As HRESULT
#End Region
<PreserveSig>
Function GetSystemFontSet7(includeDownloadableFonts As Boolean, <Out> ByRef fontSet As IDWriteFontSet2) As HRESULT
<PreserveSig>
Function GetSystemFontCollection7(includeDownloadableFonts As Boolean, fontFamilyModel As DWRITE_FONT_FAMILY_MODEL, <Out> ByRef fontCollection As IDWriteFontCollection3) As HRESULT
End Interface
<ComImport>
<Guid("EE0A7FB5-DEF4-4C23-A454-C9C7DC878398")>
<InterfaceType(ComInterfaceType.InterfaceIsIUnknown)>
Public Interface IDWriteFactory8
Inherits IDWriteFactory7
#Region "IDWriteFactory6"
#Region "IDWriteFactory5"
#Region "IDWriteFactory4"
#Region "IDWriteFactory3"
#Region "IDWriteFactory2"
#Region "IDWriteFactory1"
#Region "IDWriteFactory"
Overloads Function GetSystemFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontCollection(collectionLoader As IDWriteFontCollectionLoader, collectionKey As IntPtr, collectionKeySize As Integer, <Out> ByRef fontCollection As IDWriteFontCollection) As HRESULT
<PreserveSig>
Overloads Function RegisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
Overloads Function UnregisterFontCollectionLoader(fontCollectionLoader As IDWriteFontCollectionLoader) As HRESULT
'new HRESULT CreateFontFileReference(string filePath, System.Runtime.InteropServices.ComTypes.FILETIME lastWriteTime, out IDWriteFontFile fontFile);
<PreserveSig>
Overloads Function CreateFontFileReference(
<MarshalAs(UnmanagedType.LPWStr)> filePath As String, lastWriteTime As IntPtr, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateCustomFontFileReference(fontFileReferenceKey As IntPtr, fontFileReferenceKeySize As UInteger, fontFileLoader As IDWriteFontFileLoader, <Out> ByRef fontFile As IDWriteFontFile) As HRESULT
<PreserveSig>
Overloads Function CreateFontFace(fontFaceType As DWRITE_FONT_FACE_TYPE, numberOfFiles As Integer,
<MarshalAs(UnmanagedType.LPArray, SizeParamIndex:=1)> fontFiles As IDWriteFontFile(), faceIndex As Integer, fontFaceSimulationFlags As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFace As IDWriteFontFace) As HRESULT
<PreserveSig>
Overloads Function CreateRenderingParams(<Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateMonitorRenderingParams(monitor As IntPtr, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams(gamma As Single, enhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams) As HRESULT
<PreserveSig>
Overloads Function RegisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
Overloads Function UnregisterFontFileLoader(fontFileLoader As IDWriteFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function CreateTextFormat(
<MarshalAs(UnmanagedType.LPWStr)> fontFamilyName As String, fontCollection As IDWriteFontCollection, fontWeight As DWRITE_FONT_WEIGHT, fontStyle As DWRITE_FONT_STYLE, fontStretch As DWRITE_FONT_STRETCH, fontSize As Single,
<MarshalAs(UnmanagedType.LPWStr)> localeName As String, <Out> ByRef textFormat As IDWriteTextFormat) As HRESULT
<PreserveSig>
Overloads Function CreateTypography(<Out> ByRef typography As IDWriteTypography) As HRESULT
<PreserveSig>
Overloads Function GetGdiInterop(<Out> ByRef gdiInterop As IDWriteGdiInterop) As HRESULT
<PreserveSig>
Overloads Function CreateTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, maxWidth As Single, maxHeight As Single, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateGdiCompatibleTextLayout(
<MarshalAs(UnmanagedType.LPWStr)> str As String, stringLength As Integer, textFormat As IDWriteTextFormat, layoutWidth As Single, layoutHeight As Single, pixelsPerDip As Single, transform As DWRITE_MATRIX, useGdiNatural As Boolean, <Out> ByRef textLayout As IDWriteTextLayout) As HRESULT
<PreserveSig>
Overloads Function CreateEllipsisTrimmingSign(textFormat As IDWriteTextFormat, <Out> ByRef trimmingSign As IDWriteInlineObject) As HRESULT
<PreserveSig>
Overloads Function CreateTextAnalyzer(<Out> ByRef textAnalyzer As IDWriteTextAnalyzer) As HRESULT
<PreserveSig>
Overloads Function CreateNumberSubstitution(substitutionMethod As DWRITE_NUMBER_SUBSTITUTION_METHOD, localeName As String, ignoreUserOverride As Boolean, <Out> ByRef numberSubstitution As IDWriteNumberSubstitution) As HRESULT
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis(ByRef glyphRun As DWRITE_GLYPH_RUN, pixelsPerDip As Single, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
#End Region
Overloads Function GetEudcFontCollection(<Out> ByRef fontCollection As IDWriteFontCollection, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams1(gamma As Single, enhancedContrast As Single, enhancedContrastGrayscale As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams1) As HRESULT
#End Region
<PreserveSig>
Overloads Function GetSystemFontFallback(<Out> ByRef fontFallback As IDWriteFontFallback) As HRESULT
<PreserveSig>
Overloads Function CreateFontFallbackBuilder(<Out> ByRef fontFallbackBuilder As IDWriteFontFallbackBuilder) As HRESULT
<PreserveSig>
Overloads Function TranslateColorGlyphRun(baselineOriginX As D2D1_POINT_2F, baselineOriginY As D2D1_POINT_2F, ByRef glyphRun As DWRITE_GLYPH_RUN, glyphRunDescription As IntPtr, measuringMode As DWRITE_MEASURING_MODE, worldToDeviceTransform As IntPtr, colorPaletteIndex As UInteger, <Out> ByRef colorLayers As IDWriteColorGlyphRunEnumerator) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams2(gamma As Single, enhancedContrast As Single, grayscaleEnhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams2) As HRESULT
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis2(ByRef glyphRun As DWRITE_GLYPH_RUN, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE, measuringMode As DWRITE_MEASURING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, antialiasMode As DWRITE_TEXT_ANTIALIAS_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
#End Region
<PreserveSig>
Overloads Function CreateGlyphRunAnalysis3(ByRef glyphRun As DWRITE_GLYPH_RUN, transform As DWRITE_MATRIX, renderingMode As DWRITE_RENDERING_MODE1, measuringMode As DWRITE_MEASURING_MODE, gridFitMode As DWRITE_GRID_FIT_MODE, antialiasMode As DWRITE_TEXT_ANTIALIAS_MODE, baselineOriginX As Single, baselineOriginY As Single, <Out> ByRef glyphRunAnalysis As IDWriteGlyphRunAnalysis) As HRESULT
<PreserveSig>
Overloads Function CreateCustomRenderingParams3(gamma As Single, enhancedContrast As Single, grayscaleEnhancedContrast As Single, clearTypeLevel As Single, pixelGeometry As DWRITE_PIXEL_GEOMETRY, renderingMode As DWRITE_RENDERING_MODE1, gridFitMode As DWRITE_GRID_FIT_MODE, <Out> ByRef renderingParams As IDWriteRenderingParams3) As HRESULT
'new HRESULT CreateFontFaceReference3(string filePath, System.Runtime.InteropServices.ComTypes.FILETIME lastWriteTime, uint faceIndex, DWRITE_FONT_SIMULATIONS fontSimulations, out IDWriteFontFaceReference fontFaceReference);
<PreserveSig>
Overloads Function CreateFontFaceReference3(filePath As String, lastWriteTime As IntPtr, faceIndex As UInteger, fontSimulations As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFaceReference As IDWriteFontFaceReference) As HRESULT
<PreserveSig>
Overloads Function CreateFontFaceReference3(fontFile As IDWriteFontFile, faceIndex As UInteger, fontSimulations As DWRITE_FONT_SIMULATIONS, <Out> ByRef fontFaceReference As IDWriteFontFaceReference) As HRESULT
<PreserveSig>
Overloads Function GetSystemFontSet3(<Out> ByRef fontSet As IDWriteFontSet) As HRESULT
<PreserveSig>
Overloads Function CreateFontSetBuilder3(<Out> ByRef fontSetBuilder As IDWriteFontSetBuilder) As HRESULT
<PreserveSig>
Overloads Function CreateFontCollectionFromFontSet3(fontSet As IDWriteFontSet, <Out> ByRef fontCollection As IDWriteFontCollection1) As HRESULT
<PreserveSig>
Overloads Function GetSystemFontCollection3(includeDownloadableFonts As Boolean, <Out> ByRef fontCollection As IDWriteFontCollection1, Optional checkForUpdates As Boolean = False) As HRESULT
<PreserveSig>
Overloads Function GetFontDownloadQueue(<Out> ByRef fontDownloadQueue As IDWriteFontDownloadQueue) As HRESULT
#End Region
<PreserveSig>
Overloads Function TranslateColorGlyphRun4(baselineOrigin As D2D1_POINT_2F, ByRef glyphRun As DWRITE_GLYPH_RUN, glyphRunDescription As IntPtr, desiredGlyphImageFormats As DWRITE_GLYPH_IMAGE_FORMATS, measuringMode As DWRITE_MEASURING_MODE, worldAndDpiTransform As IntPtr, colorPaletteIndex As UInteger, <Out> ByRef colorLayers As IDWriteColorGlyphRunEnumerator1) As HRESULT
<PreserveSig>
Overloads Function ComputeGlyphOrigins(ByRef glyphRun As DWRITE_GLYPH_RUN, measuringMode As DWRITE_MEASURING_MODE, baselineOrigin As D2D1_POINT_2F, worldAndDpiTransform As DWRITE_MATRIX, <Out> ByRef glyphOrigins As D2D1_POINT_2F) As HRESULT
<PreserveSig>
Overloads Function ComputeGlyphOrigins(ByRef glyphRun As DWRITE_GLYPH_RUN, baselineOrigin As D2D1_POINT_2F, <Out> ByRef glyphOrigins As D2D1_POINT_2F) As HRESULT
#End Region
<PreserveSig>
Overloads Function CreateFontSetBuilder5(<Out> ByRef fontSetBuilder As IDWriteFontSetBuilder1) As HRESULT
<PreserveSig>
Overloads Function CreateInMemoryFontFileLoader(<Out> ByRef newLoader As IDWriteInMemoryFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function CreateHttpFontFileLoader(referrerUrl As String, extraHeaders As String, <Out> ByRef newLoader As IDWriteRemoteFontFileLoader) As HRESULT
<PreserveSig>
Overloads Function AnalyzeContainerType(fileData As IntPtr, fileDataSize As UInteger) As DWRITE_CONTAINER_TYPE
<PreserveSig>
Overloads Function UnpackFontFile(containerType As DWRITE_CONTAINER_TYPE, fileData As IntPtr, fileDataSize As UInteger, <Out> ByRef unpackedFontStream As IDWriteFontFileStream) As HRESULT
#End Region
<PreserveSig>
Overloads Function CreateFontFaceReference6(fontFile As IDWriteFontFile, faceIndex As UInteger, fontSimulations As DWRITE_FONT_SIMULATIONS, fontAxisValues As DWRITE_FONT_AXIS_VALUE, fontAxisValueCount As UInteger, <Out> ByRef fontFaceReference As IDWriteFontFaceReference1) As HRESULT
<PreserveSig>
Overloads Function CreateFontResource(fontFile As IDWriteFontFile, faceIndex As UInteger, <Out> ByRef fontResource As IDWriteFontResource) As HRESULT
<PreserveSig>
Overloads Function GetSystemFontSet6(includeDownloadableFonts As Boolean, <Out> ByRef fontSet As IDWriteFontSet1) As HRESULT
<PreserveSig>
Overloads Function GetSystemFontCollection6(includeDownloadableFonts As Boolean, fontFamilyModel As DWRITE_FONT_FAMILY_MODEL, <Out> ByRef fontCollection As IDWriteFontCollection2) As HRESULT
<PreserveSig>
Overloads Function CreateFontCollectionFromFontSet6(fontSet As IDWriteFontSet, fontFamilyModel As DWRITE_FONT_FAMILY_MODEL, <Out> ByRef fontCollection As IDWriteFontCollection2) As HRESULT
<PreserveSig>
Overloads Function CreateFontSetBuilder6(<Out> ByRef fontSetBuilder As IDWriteFontSetBuilder2) As HRESULT
<PreserveSig>
Overloads Function CreateTextFormat6(fontFamilyName As String, fontCollection As IDWriteFontCollection, fontAxisValues As DWRITE_FONT_AXIS_VALUE, fontAxisValueCount As UInteger, fontSize As Single, localeName As String, <Out> ByRef textFormat As IDWriteTextFormat3) As HRESULT
#End Region
#Region "<IDWriteFactory7>"
<PreserveSig>