{{{{hugs}}}} I am so sorry.
FWIW-- if this Ahole is really someone you don;t want in the baby's life...I know a few people who were able to get the dad to give up parental rights at birth. (one was a friend of mine in college, the other was the daughter of a family friend, and one was the father of the baby) In all 3 cases, the baby's father was presented with the papers terminating his parental rights AND (ie "or") the papers acknowledging his fatherhood and setting up child support payments. The daddy got to choose which paper to sign. They all chose the parental rights termination. It might be something to think about. All 3 dads relinquished their parental rights...which freed the mom to live her life the way she chose and in 2 cases, the children were eventually adopted by the mom's second husbands (yes, 2 of the baby daddy's were actually estranged husbands) It also meant that the mother could choose to put the baby up for adoption without interference from the father. I think my college friend's parents hoped that she would give her baby up, but she did not. She told me that despite knowing that her ex boyfriend was a total jerk, and despite that he had dumped her when she got pregnant - seeing his signature on that page (and him never acknowledging his son) was one of the most painful experiences in her life. But she was grateful that her parents insisted because it gave her a lot of freedom to live her life and raise her son. Just something to keep in the back of your head in case it comes up.
I am glad your daughter is clean. I hope she remains clean. And I am not sure how far along she is - but I seem to remember that the baby is pretty much protected in those first few weeks before the placenta is formed. That it's just cells dividing and multiplying and until it attaches and starts receiving nourishment from the mom, it is protected from any vices that may have occurred before she knew she was pregnant. So that's a hope.