The judges of the courts included in this act [article] shall have authority in all civil cases to require a deposit on the fees of the official court reporter before requiring him to take down the testimony in such cases. The amount of such deposit shall be fixed by the court, and shall be applied to the payment of legal fees to which the official court reporter may be entitled, and if such deposit exceeds the legal fees arising in such cases the excess shall be returned to the parties making the deposit.