A visitor visa costs £76.
A settlement visa - which is what a fiancee visa is - costs £810
http://www.ukba.homeoffice.gov.uk/visas ... e-cp/fees/#
This gives you an initial 6 month period to marry, then you extend the visa (one married) using the form FLR(M) - which costs £550 (for a postal application - more for in person/same day). After two years of FLR(M) if you're still together - he can then apply for Indefinite Leave (ILR) - which costs a further £972 (currently). Finally - after 3 years of originally arriving in the country - he can apply for british citizenship - that costs £836.
Note this is all based on the current rules and there is a consultation and plans to change them.
Now - there is the concept of a marriage visitor visa which costs the same as a standard visitor visa - but you'll face the same problem as a standard visitor visa - he's got to prove that he's going to leave at the end of his stay - and having a british partner in the country, with a child, and no permanent job in his home country will make it very hard to prove.
You're stuck between a rock and a hard place really. No funds to prove a fiancee visa, no reason for him to return on a visitor visa.
There's another option which is to bypass the fiancee bit of the visa (I'm going to assume the important bit is the birth of the child). You travel to Morocco, marry immediately (if possible under the law there - no idea!), then apply for a spouse visa for him. You save the additional £550 of FLR(M) by doing this and he can work immediately on arrival.
This can help with the funds because you can organise someone to offer him a job from here and thus have a job (and therefore income) waiting for him here. Evidence of this will then help sway the decision.
It might not be the ideal marriage, but then it doesn't have to be the only ceremony you do - you could do a simple "just the two of you" type ceremony, then top it up with a full wedding in the UK or Morocco after.
There is also an option around a court ruling called 'Zambrano' - the ruling says that if there is a dependant person in the UK (who is a british citizen - which your child would be) who is dependant on someone outside the UK - that person they are dependant on has a right of abode in the UK. However, you have to show that the child IS dependant on the father. This also doesn't grant him entry until after the birth and if you're going down that route there are visas specifically for access to a child.
I'm also going to suggest something I wouldn't normally. You have the voluntary group who have funded the university education - well - yes you have a contract with them, but the worst they can do is sue you in the UK. IF you chose to move to Morocco permanently there wouldn't be much they could do from the UK to recover the money from the breach of contract. It's not ethical, but it is practical in this case.
I think what you need to do is make a list of what your top priorities are over the next few months/years. THis will then help inform your decision as to where you go from here.
M.