. . . . "In criminal cases where the charge is a misdemeanor or felony, if the defendant cannot afford a lawyer, the court will appoint one without cost to the defendant." .