/// <summary>
        /// Writes a <see cref="TextLayoutCommandType.PushStyle"/> command to the current position in the stream.
        /// </summary>
        /// <param name="command">The command to write to the stream.</param>
        public void WritePushStyle(TextLayoutStyleCommand command)
        {
            hasMultipleFontStyles = true;

            stream.Reserve(sizeof(TextLayoutStyleCommand));
            *(TextLayoutStyleCommand *)stream.Data = command;
            *(TextLayoutCommandType *)stream.Data  = TextLayoutCommandType.PushStyle;
            stream.FinalizeObject(sizeof(TextLayoutStyleCommand));
        }
        /// <summary>
        /// Writes a <see cref="TextLayoutCommandType.PushStyle"/> command to the current position in the stream.
        /// </summary>
        /// <param name="command">The command to write to the stream.</param>
        public void WritePushStyle(TextLayoutStyleCommand command)
        {
            hasMultipleFontStyles = true;

            stream.Reserve(sizeof(TextLayoutStyleCommand));
            *(TextLayoutStyleCommand*)stream.Data = command;
            *(TextLayoutCommandType*)stream.Data = TextLayoutCommandType.PushStyle;
            stream.FinalizeObject(sizeof(TextLayoutStyleCommand));
        }