lib/filigree/src/fixture/gpos.zig

daab053ee43316e1809a84551d573ddd1e5bf3d2

  1 const std = @import("std");
  2 const font_fixture = @import("font.zig");
  3 
  4 pub fn createWithGposSingleAdjustment(allocator: std.mem.Allocator) ![]u8 {
  5     return font_fixture.createWithOptions(allocator, .{ .gpos_single = true });
  6 }
  7 
  8 pub fn createWithGposFeatureVariations(allocator: std.mem.Allocator) ![]u8 {
  9     return font_fixture.createWithOptions(allocator, .{ .variations = true, .gpos_feature_variations = true });
 10 }
 11 
 12 pub fn createWithGposSingleVariationAdjustment(allocator: std.mem.Allocator) ![]u8 {
 13     return font_fixture.createWithOptions(allocator, .{ .variations = true, .gpos_single_variation = true, .gdef_variations = true });
 14 }
 15 
 16 pub fn createWithGposSimpleContextualSingleAdjustment(allocator: std.mem.Allocator) ![]u8 {
 17     return font_fixture.createWithOptions(allocator, .{ .gpos_contextual_simple_single = true });
 18 }
 19 
 20 pub fn createWithGposClassContextualSingleAdjustment(allocator: std.mem.Allocator) ![]u8 {
 21     return font_fixture.createWithOptions(allocator, .{ .gpos_contextual_class_single = true });
 22 }
 23 
 24 pub fn createWithGposContextualSingleAdjustment(allocator: std.mem.Allocator) ![]u8 {
 25     return font_fixture.createWithOptions(allocator, .{ .gpos_contextual_single = true });
 26 }
 27 
 28 pub fn createWithGposChainedContextualSingleAdjustment(allocator: std.mem.Allocator) ![]u8 {
 29     return font_fixture.createWithOptions(allocator, .{ .gpos_chained_contextual_single = true });
 30 }
 31 
 32 pub fn createWithGposChainedSimpleContextualSingleAdjustment(allocator: std.mem.Allocator) ![]u8 {
 33     return font_fixture.createWithOptions(allocator, .{ .gpos_chained_simple_contextual_single = true });
 34 }
 35 
 36 pub fn createWithGposChainedClassContextualSingleAdjustment(allocator: std.mem.Allocator) ![]u8 {
 37     return font_fixture.createWithOptions(allocator, .{ .gpos_chained_class_contextual_single = true });
 38 }
 39 
 40 pub fn createWithGposContextualPairAdjustment(allocator: std.mem.Allocator) ![]u8 {
 41     return font_fixture.createWithOptions(allocator, .{ .gpos_contextual_pair = true });
 42 }
 43 
 44 pub fn createWithGposSimpleContextualPairAdjustment(allocator: std.mem.Allocator) ![]u8 {
 45     return font_fixture.createWithOptions(allocator, .{ .gpos_contextual_simple_pair = true });
 46 }
 47 
 48 pub fn createWithGposClassContextualPairAdjustment(allocator: std.mem.Allocator) ![]u8 {
 49     return font_fixture.createWithOptions(allocator, .{ .gpos_contextual_class_pair = true });
 50 }
 51 
 52 pub fn createWithGposChainedContextualPairAdjustment(allocator: std.mem.Allocator) ![]u8 {
 53     return font_fixture.createWithOptions(allocator, .{ .gpos_chained_contextual_pair = true });
 54 }
 55 
 56 pub fn createWithGposChainedSimpleContextualPairAdjustment(allocator: std.mem.Allocator) ![]u8 {
 57     return font_fixture.createWithOptions(allocator, .{ .gpos_chained_simple_contextual_pair = true });
 58 }
 59 
 60 pub fn createWithGposChainedClassContextualPairAdjustment(allocator: std.mem.Allocator) ![]u8 {
 61     return font_fixture.createWithOptions(allocator, .{ .gpos_chained_class_contextual_pair = true });
 62 }
 63 
 64 pub fn createWithGposPairAdjustment(allocator: std.mem.Allocator) ![]u8 {
 65     return font_fixture.createWithOptions(allocator, .{ .gpos_pair = true });
 66 }
 67 
 68 pub fn createWithGposVerticalPairAdjustment(allocator: std.mem.Allocator) ![]u8 {
 69     return font_fixture.createWithOptions(allocator, .{ .gpos_vertical_pair = true, .vertical_metrics = true });
 70 }
 71 
 72 pub fn createWithGposPairIgnoreMarks(allocator: std.mem.Allocator) ![]u8 {
 73     return font_fixture.createWithOptions(allocator, .{ .gpos_pair_ignore_marks = true, .gdef_classes = true });
 74 }
 75 
 76 pub fn createWithGposCursiveAttachment(allocator: std.mem.Allocator) ![]u8 {
 77     return font_fixture.createWithOptions(allocator, .{ .gpos_cursive = true });
 78 }
 79 
 80 pub fn createWithKernAndGposPairAdjustment(allocator: std.mem.Allocator) ![]u8 {
 81     return font_fixture.createWithOptions(allocator, .{ .kern = true, .gpos_pair = true });
 82 }
 83 
 84 pub fn createWithGposMarkToBase(allocator: std.mem.Allocator) ![]u8 {
 85     return font_fixture.createWithOptions(allocator, .{ .gpos_mark_to_base = true, .gdef_classes = true });
 86 }
 87 
 88 pub fn createWithGposMarkToBaseThenPair(allocator: std.mem.Allocator) ![]u8 {
 89     return font_fixture.createWithOptions(allocator, .{ .gpos_mark_to_base_then_pair = true, .gdef_classes = true });
 90 }
 91 
 92 pub fn createWithGposAboveBaseMarkPositioning(allocator: std.mem.Allocator) ![]u8 {
 93     return font_fixture.createWithOptions(allocator, .{ .gpos_above_base_mark = true, .gdef_classes = true });
 94 }
 95 
 96 pub fn createWithGposBelowBaseMarkPositioning(allocator: std.mem.Allocator) ![]u8 {
 97     return font_fixture.createWithOptions(allocator, .{ .gpos_below_base_mark = true, .gdef_classes = true });
 98 }
 99 
100 pub fn createWithGposMarkToMark(allocator: std.mem.Allocator) ![]u8 {
101     return font_fixture.createWithOptions(allocator, .{ .gpos_mark_to_mark = true, .gdef_classes = true });
102 }
103 
104 pub fn createWithGposMarkToLigature(allocator: std.mem.Allocator) ![]u8 {
105     return font_fixture.createWithOptions(allocator, .{ .gsub_ligature = true, .gpos_mark_to_ligature = true, .gdef_classes = true });
106 }