lib/filigree/src/fixture/gsub.zig

daab053ee43316e1809a84551d573ddd1e5bf3d2

  1 const std = @import("std");
  2 const font_fixture = @import("font.zig");
  3 
  4 pub fn createWithGsubSingleSubstitution(allocator: std.mem.Allocator) ![]u8 {
  5     return font_fixture.createWithOptions(allocator, .{ .gsub_single = true });
  6 }
  7 
  8 pub fn createWithGsubSingleIgnoreMarks(allocator: std.mem.Allocator) ![]u8 {
  9     return font_fixture.createWithOptions(allocator, .{ .gsub_single_ignore_marks = true, .gdef_classes = true });
 10 }
 11 
 12 pub fn createWithGsubAlternateSubstitution(allocator: std.mem.Allocator) ![]u8 {
 13     return font_fixture.createWithOptions(allocator, .{ .gsub_alternate = true });
 14 }
 15 
 16 pub fn createWithGsubContextualSubstitution(allocator: std.mem.Allocator) ![]u8 {
 17     return font_fixture.createWithOptions(allocator, .{ .gsub_contextual = true });
 18 }
 19 
 20 pub fn createWithGsubClassContextualSubstitution(allocator: std.mem.Allocator) ![]u8 {
 21     return font_fixture.createWithOptions(allocator, .{ .gsub_class_contextual = true });
 22 }
 23 
 24 pub fn createWithGsubCoverageContextualSubstitution(allocator: std.mem.Allocator) ![]u8 {
 25     return font_fixture.createWithOptions(allocator, .{ .gsub_contextual_coverage = true });
 26 }
 27 
 28 pub fn createWithGsubChainedContextualSubstitution(allocator: std.mem.Allocator) ![]u8 {
 29     return font_fixture.createWithOptions(allocator, .{ .gsub_chained_contextual = true });
 30 }
 31 
 32 pub fn createWithGsubChainedSimpleContextualSubstitution(allocator: std.mem.Allocator) ![]u8 {
 33     return font_fixture.createWithOptions(allocator, .{ .gsub_chained_simple_contextual = true });
 34 }
 35 
 36 pub fn createWithGsubChainedClassContextualSubstitution(allocator: std.mem.Allocator) ![]u8 {
 37     return font_fixture.createWithOptions(allocator, .{ .gsub_chained_class_contextual = true });
 38 }
 39 
 40 pub fn createWithGsubLigature(allocator: std.mem.Allocator) ![]u8 {
 41     return font_fixture.createWithOptions(allocator, .{ .gsub_ligature = true });
 42 }
 43 
 44 pub fn createWithGsubContextualLigature(allocator: std.mem.Allocator) ![]u8 {
 45     return font_fixture.createWithOptions(allocator, .{ .gsub_contextual_ligature = true });
 46 }
 47 
 48 pub fn createWithGsubMultipleSubstitution(allocator: std.mem.Allocator) ![]u8 {
 49     return font_fixture.createWithOptions(allocator, .{ .gsub_multiple = true });
 50 }
 51 
 52 pub fn createWithGsubReverseChainingSingleSubstitution(allocator: std.mem.Allocator) ![]u8 {
 53     return font_fixture.createWithOptions(allocator, .{ .gsub_reverse = true });
 54 }
 55 
 56 pub fn createWithGsubLocalizedForms(allocator: std.mem.Allocator) ![]u8 {
 57     return font_fixture.createWithOptions(allocator, .{ .gsub_localized_forms = true });
 58 }
 59 
 60 pub fn createWithGsubContextualAlternates(allocator: std.mem.Allocator) ![]u8 {
 61     return font_fixture.createWithOptions(allocator, .{ .gsub_contextual_alternates = true });
 62 }
 63 
 64 pub fn createWithGsubRequiredContextualAlternates(allocator: std.mem.Allocator) ![]u8 {
 65     return font_fixture.createWithOptions(allocator, .{ .gsub_required_contextual_alternates = true });
 66 }
 67 
 68 pub fn createWithGsubLeftToRightAlternates(allocator: std.mem.Allocator) ![]u8 {
 69     return font_fixture.createWithOptions(allocator, .{ .gsub_left_to_right_alternates = true });
 70 }
 71 
 72 pub fn createWithGsubLeftToRightMirroredForms(allocator: std.mem.Allocator) ![]u8 {
 73     return font_fixture.createWithOptions(allocator, .{ .gsub_left_to_right_mirrored_forms = true });
 74 }
 75 
 76 pub fn createWithGsubRightToLeftAlternates(allocator: std.mem.Allocator) ![]u8 {
 77     return font_fixture.createWithOptions(allocator, .{ .gsub_right_to_left_alternates = true });
 78 }
 79 
 80 pub fn createWithGsubRightToLeftMirroredForms(allocator: std.mem.Allocator) ![]u8 {
 81     return font_fixture.createWithOptions(allocator, .{ .gsub_right_to_left_mirrored_forms = true });
 82 }
 83 
 84 pub fn createWithGsubFractions(allocator: std.mem.Allocator) ![]u8 {
 85     return font_fixture.createWithOptions(allocator, .{ .gsub_fractions = true });
 86 }
 87 
 88 pub fn createWithGsubFractionComponents(allocator: std.mem.Allocator) ![]u8 {
 89     return font_fixture.createWithOptions(allocator, .{ .gsub_fraction_components = true });
 90 }
 91 
 92 pub fn createWithGsubArabicJoiningForms(allocator: std.mem.Allocator) ![]u8 {
 93     return font_fixture.createWithOptions(allocator, .{ .gsub_arabic_joining_forms = true });
 94 }
 95 
 96 pub fn createWithGsubFeatureVariations(allocator: std.mem.Allocator) ![]u8 {
 97     return font_fixture.createWithOptions(allocator, .{ .variations = true, .gsub_feature_variations = true });
 98 }
 99 
100 pub fn createWithGsubRequiredVariationAlternates(allocator: std.mem.Allocator) ![]u8 {
101     return font_fixture.createWithOptions(allocator, .{ .variations = true, .gsub_required_variation_alternates = true });
102 }
103 
104 pub fn createWithGsubVerticalAlternates(allocator: std.mem.Allocator) ![]u8 {
105     return font_fixture.createWithOptions(allocator, .{ .gsub_vertical_alternates = true });
106 }
107 
108 pub fn createWithGsubVerticalRotationAlternates(allocator: std.mem.Allocator) ![]u8 {
109     return font_fixture.createWithOptions(allocator, .{ .gsub_vertical_rotation_alternates = true });
110 }