diff --git a/doc/.common.page b/doc/.common.page index 1eb276c..2e3f724 100644 --- a/doc/.common.page +++ b/doc/.common.page @@ -43,6 +43,24 @@ navTree: - text: Properties subItems: - text: IsNone|./ref/Topten.RichTextKit.CaretInfo.IsNone + - text: FontFallback + subItems: + - text: Overview|./ref/Topten.RichTextKit.FontFallback + - text: Constructors|./ref/Topten.RichTextKit.FontFallback..ctor + - text: Fields + subItems: + - text: CharacterMatcher|./ref/Topten.RichTextKit.FontFallback.CharacterMatcher + - text: Methods + subItems: + - text: GetFontRuns|./ref/Topten.RichTextKit.FontFallback.GetFontRuns + - text: FontFallback.Run + subItems: + - text: Overview|./ref/Topten.RichTextKit.FontFallback.Run + - text: Fields + subItems: + - text: Length|./ref/Topten.RichTextKit.FontFallback.Run.Length + - text: Start|./ref/Topten.RichTextKit.FontFallback.Run.Start + - text: Typeface|./ref/Topten.RichTextKit.FontFallback.Run.Typeface - text: FontMapper subItems: - text: Overview|./ref/Topten.RichTextKit.FontMapper @@ -107,6 +125,12 @@ navTree: - text: Properties subItems: - text: IsNone|./ref/Topten.RichTextKit.HitTestResult.IsNone + - text: ICharacterMatcher + subItems: + - text: Overview|./ref/Topten.RichTextKit.ICharacterMatcher + - text: Methods + subItems: + - text: MatchCharacter|./ref/Topten.RichTextKit.ICharacterMatcher.MatchCharacter - text: IStyle subItems: - text: Overview|./ref/Topten.RichTextKit.IStyle diff --git a/doc/ref/Topten.RichTextKit.FontFallback..ctor.page b/doc/ref/Topten.RichTextKit.FontFallback..ctor.page new file mode 100644 index 0000000..234b2fc --- /dev/null +++ b/doc/ref/Topten.RichTextKit.FontFallback..ctor.page @@ -0,0 +1,37 @@ +--- +title: "FontFallback..ctor" +isMarkdown: false +import: "../.common.page" +--- + +
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit
+
+ Declaring Type: FontFallback
+
+
public FontFallback();
+
+
+
+
+
+
+
+
+
diff --git a/doc/ref/Topten.RichTextKit.FontFallback.CharacterMatcher.page b/doc/ref/Topten.RichTextKit.FontFallback.CharacterMatcher.page
new file mode 100644
index 0000000..85463f2
--- /dev/null
+++ b/doc/ref/Topten.RichTextKit.FontFallback.CharacterMatcher.page
@@ -0,0 +1,40 @@
+---
+title: "FontFallback.CharacterMatcher"
+isMarkdown: false
+import: "../.common.page"
+---
+
+
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit
+
+ Declaring Type: FontFallback
+
+
Specifies the instance of the character matcher to be used for font fallback
+ + +public static ICharacterMatcher CharacterMatcher;
+
+This instance is shared by all TextBlock instances and should be thread safe +if used in a multi-threaded environment.
+ +ICharacterMatcher | ++ |
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit
+
+ Declaring Type: FontFallback
+
+
Splits a sequence of code points into a series of runs with font fallback applied
+ + +[Runtime.CompilerServices.IteratorStateMachine(Topten.RichTextKit.FontFallback+<GetFontRuns>d__2)]
public static IEnumerable<Run> GetFontRuns(Utils.Slice<int> codePoints, SkiaSharp.SKTypeface typeface);
+
+
++ + Utils.Slice<int> codePoints + | +The code points + |
+
+ + SkiaSharp.SKTypeface typeface + | +The preferred typeface + |
+
IEnumerable<Run> | +A sequence of runs with unsupported code points replaced by a selected font fallback + |
+
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit
+
+ Declaring Type: FontFallback.Run
+
+
The length of this run in code points
+ + +public int Length;
+
+
+int | ++ |
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit
+
+ Declaring Type: FontFallback.Run
+
+
The starting code point index of this run
+ + +public int Start;
+
+
+int | ++ |
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit
+
+ Declaring Type: FontFallback.Run
+
+
The typeface to be used for this run
+ + +public SkiaSharp.SKTypeface Typeface;
+
+
+SkiaSharp.SKTypeface | ++ |
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit
+
+ Declaring Type: FontFallback
+
+
Specified details about a font fallback run
+ + +public struct FontFallback.Run
+
+ + FontFallback.Run + → ValueType → object
+ + + + + + + + +Length | +The length of this run in code points + |
+
Start | +The starting code point index of this run + |
+
Typeface | +The typeface to be used for this run + |
+
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit
+
+
Helper to split a run of code points based on a particular typeface +into a series of runs where unsupported code points are mapped to a +fallback font.
+ + +public class FontFallback
+
+ + FontFallback + → object
+ + + + + +FontFallback() | ++ |
CharacterMatcher | +Specifies the instance of the character matcher to be used for font fallback + |
+
GetFontRuns(Utils.Slice<int>, SkiaSharp.SKTypeface) | +Splits a sequence of code points into a series of runs with font fallback applied + |
+
FontFallback.Run | +Specified details about a font fallback run + |
+
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit
+
+ Declaring Type: ICharacterMatcher
+
+
Provide a fallback typeface for a specified code point index
+ + +SkiaSharp.SKTypeface MatchCharacter(string familyName, int weight, int width, SkiaSharp.SKFontStyleSlant slant, string[] bcp47, int character);
+
+
++ + string familyName + | +The family name to use when searching. + |
+
+ + int weight + | +The font weight to use when searching. + |
+
+ + int width + | +The font width to use when searching. + |
+
+ + SkiaSharp.SKFontStyleSlant slant + | +The font slant to use when searching. + |
+
+ + string[] bcp47 + | +The ISO 639, 15924, and 3166-1 code to use when searching, such as "ja" and "zh". + |
+
+ + int character + | +The character to find a typeface for. + |
+
SkiaSharp.SKTypeface | +Returns the SkiaSharp.SKTypeface that contains the given character, or null if none was found. + |
+
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit
+
+
Provides a mechanism to override the default font fallback character matching
+ + +public interface ICharacterMatcher
+
+
+
+
+ To override font fallback selection, assign an implementation of this interface +to the FontFallback.CharacterMatcher property.
+ + + + + + + +MatchCharacter(string, int, int, SkiaSharp.SKFontStyleSlant, string[], int) | +Provide a fallback typeface for a specified code point index + |
+
FontFallback | +Helper to split a run of code points based on a particular typeface +into a series of runs where unsupported code points are mapped to a +fallback font. + |
+ ||||||||
FontMapper | The FontMapper class is responsible for mapping style typeface information @@ -68,6 +75,11 @@ style. Interfaces
|