Legal custody refers to joint decision-making between parents, which is preferred by Texas courts. Physical custody determines which parent the child spends most of their time with. Texas law does not automatically recognize unmarried fathers as legal parents. To establish paternity and custody rights, an unmarried father will need a DNA test. If parents agree on custody, the court will enforce that agreement, but if they disagree the court will determine the best custody arrangement.