Eddayy / flutter_star_prnt

Flutter plugin for star printer
GNU General Public License v3.0
15 stars 60 forks source link

How to configure appendEmphasis with fontSize? #27

Closed yamatatsu10969 closed 2 years ago

yamatatsu10969 commented 2 years ago

Hi! Developers.

How to push appendEmphasis with fontSize?

I could push appendEmphasis this code, but SDK ignore fontSize.

    commands.push(
      <String, dynamic>{
        'appendEmphasis': 'some text',
        'width': 384,
        'fontSize': 20,
      },
    );
yamatatsu10969 commented 2 years ago

I used appendMultiple.

  commands
      ..push(
        <String, dynamic>{
          'appendInternational': 'Japan',
        },
      )
      ..push(
        <String, dynamic>{
          'appendCharacterSpace': 0,
        },
      )
      ..push(
        <String, dynamic>{
          'appendAlignment': 'left',
        },
      )
      ..push(
        <String, dynamic>{
          'enableEmphasis': true,
        },
      )
      ..push(
        <String, dynamic>{
          'appendMultiple': 'Uber Eats',
          'height': 3,
          'width': 3,
        },
      );